Different Navigation Images for different Categories
I'm trying to figure out how to write the code that will allow an navigation image to change according to what Category you are currently browsing.
The code would then be placed into the head.tpl
Here's what I was thinking even though I don't know the correct way to write it.
{if $cat eq "1"}
[img]button_1.gif[/img]
{elseif $cat eq "2"}
[img]button_2.gif[/img]
{elseif $cat eq "2"}
[img]button_3.gif[/img]
{elseif $cat eq "2"}
[img]button_4.gif[/img]
{else}
[img]button_main.gif[/img]
{/if}
|