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

standard template image query?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-23-2006, 11:56 AM
 
obaluba obaluba is offline
 

Advanced Member
  
Join Date: Aug 2005
Posts: 45
 

Default standard template image query?

Hi,

I have the standard template, the 3 category one supplied as standard. I have edited the /customer/home.tpl to add an image i only want displayed on the index/home/root of the site.

However I have managed to make it so it displays at the top of every subsequent page?

Does anyone know how I can isolate it so it only appears on home.php and not every other page!?

many thanks in advance
__________________
Version 4.0.14
Reply With Quote
  #2  
Old 05-23-2006, 12:08 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Moving to Template editing. You need to use an {if} statement:


{if $main eq "catalog" and $current_category.category eq ""}
insert image code here
{/if}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
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 10:14 AM.

   

 
X-Cart forums © 2001-2020