View Single Post
  #1  
Old 07-27-2007, 10:29 AM
 
luxor luxor is offline
 

Senior Member
  
Join Date: Apr 2007
Posts: 120
 

Default smarty condition not meeting

I am trying to place an image (looks like a <hr>) above my navigation line for the template.

However I wish to not have the black line on my front page, so I had tried using the following code to accomplish this:


Code:
{if $main ne "catalog"} <div class="topblacklinemargin"> <img src="{$ImagesDir}/blacktopline.jpg" width="100%" height="1" /> </div> {/if}


but this code is now completely eliminating the image on every page.

Does anyone have experience with this that can give me a suggestion on how to accomplish this?
__________________
v4.1.8 GOLD
Reply With Quote