Code: Select all
<table><tbody>
<tr>
<th>Nummer</th><th colspan="2">Naam</th><th>E-mail adres</th><th>Mobiel</th><th>Groep</th>
</tr>
{foreach from=$items item=item}
{if !empty($item->fielddefs)}
<tr>
<td>{$item->telefoon|cms_escape}</td>
<td><a href="{$item->url}">{$item->achternaam|cms_escape}{if $item->tussenvoegsel != ''}, {$item->tussenvoegsel|cms_escape}{/if}</a></td>
<td><a href="{$item->url}">{$item->voornaam|cms_escape}</a></td>
<td>{$item->e_mail|cms_escape}</td>
<td>{$item->mobiel|cms_escape}</td>
<td>{$item->category_name|cms_escape}</td>
</tr>
{/if}
{/foreach}
</tbody></table>
Code: Select all
{ListIt2People summarytemplate="Telefoonlijst"}
[...other 'static' content...]
Sorting as such (e.g. by adding a suitable "orderby" parameter to the template call) works fine, so maybe I could just make each table header a link to the page itself with a suitable "sort parameter" which then gets passed on to the template call - but how?
Any hints, pointers and RTFM-slappings are most welcome!
Thanks in advance,
Thomas


