[eluser]guidorossi[/eluser]
Hi!
I'm doing a list of articles with the template parser class like:
Code:
{articles}
<ul class="<?=alternator('even', 'odd');?>">
<li class="article_name">{name}</li> <li class="article_descr">{description}</li>
</ul>
{/articles}
The idea is to user alternator() to make the zebra like list, alternating the rows colors
But with that code I get always:
which would be the right way to do this? because it seems that the alternator function doesn't recognize the template loop as a loop
Thanks!