Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Home page graphic shows up everywhere

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-03-2008, 01:12 PM
 
teachers111 teachers111 is offline
 

Member
  
Join Date: May 2008
Posts: 25
 

Default Home page graphic shows up everywhere

Hello.
I have added a graphic to my home page by uploading it in my skin1/images directory and then in my skin1/customer/home.tpl I added:
<img src="{$ImagesDir}/imagename.jpg">

I wanted this picture to be in my home page only, but it shows up on every page, including all product pages, etc.

What did I do wrong, and how to fix?

ps: I don't have a portal page. That was the first thing I got rid of. Was that a mistake?

Help.
Thanks,
Nancy
__________________
X-Cart-4[1].1.9 gold
Reply With Quote
  #2  
Old 06-03-2008, 01:46 PM
  deadzebrainc's Avatar 
deadzebrainc deadzebrainc is offline
 

Advanced Member
  
Join Date: Apr 2008
Posts: 45
 

Default Re: Home page graphic shows up everywhere

Try putting an if statement around it in home.tpl, something along the lines of..

Quote:
{if $main eq "catalog" and $current_category.category eq ""}
<img src="{$ImagesDir}/imagename.jpg">
{/if}
__________________
DEAD ZEBRA, INC shop
X-cart 4.1.9
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:06 AM.

   

 
X-Cart forums © 2001-2020