nico5381
Member
Posted 2 years ago #
I use the projectmanager plugin on my website to show some stats about a football team. When I put the code [project id=1 template=table single=true] into my static site,
Name Birthday Position Matches Goals
Max Muster 01.02.1988 Midfield 12 3
Hans Hansen 12.01.1990 Forward 11 6
I get all datasets in a table. Now I want to click on a single dataset (eg. Max Muster) to show the details with image of the player and so on. But it doesn't work.
What's wrong? Can you help me?
AlphaGolf_fr
Member
Posted 2 years ago #
In the Admin panel, form fields definition tab, as soon as you have unticked "startpage" for at least one of the fields, the main entry will appear as an hyperlink in the table on your site.
nico5381
Member
Posted 2 years ago #
It works with customizing the template in view/table.php in that way...
<?php foreach ( $datasets AS $dataset ) : ?>
<tr class="<?php echo $dataset->class ?>">
<td class="name"><a href="<?php echo $dataset->URL ?>"><?php echo $dataset->name ?></a></td>
<?php $projectmanager->printDatasetMetaData( $dataset, $args ); ?>
</tr>
<?php endforeach ; ?>