[SOLVED]Using {$position} to load correct images
Posted: Thu Jun 28, 2012 7:21 pm
Hi,
Is there better way to this? I have three level navigation, where second level is only section headers and third level is sub-navigation. I want to load different images to banner dependign on the second level.
Like this:
-R
Is there better way to this? I have three level navigation, where second level is only section headers and third level is sub-navigation. I want to load different images to banner dependign on the second level.
Like this:
Code: Select all
{if $position eq "2.1.1" || $position eq "2.1.2" $position eq.....}
load image1
{elseif $position eq "2.2.1" || $position eq "2.2.2" $position eq.....}
load image2
{elseif $position eq "2.3.1" || $position eq "2.3.2" $position eq.....}
load image3
{/if}