Sunday 27 September 2009 12:29:12 am
This is how I do it - something like this:
<ul>
{foreach $item_list as $index => $item}
<li class="{cond(eq($index,0),'firstli',eq($index,dec($item_list_count)),'lastli','normalli')}">This is {$index} for {$item}</li>
{/foreach}
</ul>
Certified eZPublish developer
http://ez.no/certification/verify/396111
Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com
|