1
I have made a custom template to go along with multimenu. It is a horizantal menu and the pattern I am trying for is this:
link | link | link | link
the code i am using is a follows
<{foreach item=imenu from=$block.contents}>
<a class="menuMain"<{if $imenu.link}>href="<{$imenu.linkurl}>"<{$imenu.target}><{/if}>title="<{$imenu.alt_title}>">
<{$imenu.image}><{$imenu.title}></a> |
<{/foreach}>
But unfortunatly, it gives me this:
link | link | link | link |
I need to add a counter that detect when the last link is present and then not print the | after it. How can I do this?
Thanks in advance.