View Single Post
  #26  
Old 01-06-2009, 10:57 AM
 
ChristineP ChristineP is offline
 

eXpert
  
Join Date: Jul 2008
Posts: 310
 

Default Re: Rotating the Main Image based on categories

AWESOME.... Thank you Ashley and Vetrivel! I have this working now on my computer. You were right Ashley, I was using the order_by number and not the parentid from my cpanel.

For those interested the code is as follows:
<div class="HeadLine" style="text-align: left; height: 153px; width: 100%; margin: 10px 0px 0px 0px">
{if $main and $cat eq "68" }
<img src="{$ImagesDir}/IR_HdrImg.jpg" />
{elseif $main and $cat "15"}
<img src="{$ImagesDir}/textbanner.jpg"/>
{elseif $main and $cat eq "16"}
<img src="{$ImagesDir}/textbanner.jpg" />
{elseif $main and $cat eq "14"}
<img src="{$ImagesDir}/textbanner.jpg" />
{else}
<img src="{$ImagesDir}/IR_HdrImg.jpg"/>
{/if}
</div>

Also works for subcategory as:
{elseif $cat "70"}
<img src="{$ImagesDir}/textbanner.jpg"/>


Thanks again,
Christine
__________________
______________
version 4.1.9 Gold
Reply With Quote