View Single Post
  #1  
Old 06-03-2004, 02:08 PM
 
Beaker Beaker is offline
 

Newbie
  
Join Date: May 2004
Posts: 9
 

Default 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}
Reply With Quote