This is a smarty question.
What is the code for that?
I understand how to have the first item have a different markup then the rest.
Code: Select all
{foreach from=$items item=entry name=foo}
{if $smarty.foreach.foo.first}
...
{else}
...
{/if}
{/foreach}
Now I would like to have the first 3 items.