|
Stéphane Bullier
|
Mercredi 11 Octobre 2006 9:56:14 am
Re: Limiter l'affichage d'un forum, blog ou news
Bonjour,
Il faut utiliser 'limit' dans le fetch list :
Par exemple, pour limiter à 3
{def $limit=3
$items=fetch( 'content', 'list', hash( 'parent_node_id', 60,
'sort_by', $node.sort_array,
'limit', $limit,
'only_translated', only_translated ) )
$list_count=fetch( 'content', 'list_count', hash( 'parent_node_id', $node.node_id,
'only_translated', only_translated ) ) }
{foreach $items as $item}
{$item.name|wash()}
{/foreach}
Stéphane
|