I have read the smarty manual, and appear to be able to add an ID to every 5th item using iteration, but how can i target just the 5th menu item? I can't get anything to work in the menu manager...
This code is the iteration...
Code: Select all
<li class="{$classes}" {if $smarty.foreach.foo.index % 5 == 0} id="lasttalk" {/if}><a class="{$classes}" href="{$node->url}"><span>{$node->menutext}</span></a>