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

{if} statement to show content only on home page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-21-2005, 09:09 AM
 
rightminddesigns rightminddesigns is offline
 

Advanced Member
  
Join Date: Sep 2005
Posts: 33
 

Default {if} statement to show content only on home page

In the third column of content on home.tpl, I want to add an {if} statement that would display certain content in that cell on the home page, but other content/modules on all other pages. I am not sure how I would go about this, as I do not know how to get the current page variable. If I wanted it within a category, I know I could do
Code:
{if $cat eq "14"}stuff I want to show{else}show this other stuff instead{/if}

What can I use for the home page to get the same result?
__________________
X-Cart Gold 4.0.15 on Linux machine
Modules:
Features Comparison
Product Configurator
Fancy Categories (turned off)
Reply With Quote
  #2  
Old 09-21-2005, 09:17 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

look in skin1/customer/home_main.tpl and youl see how it works

look for welcome.tpl
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 09-21-2005, 09:27 AM
 
rightminddesigns rightminddesigns is offline
 

Advanced Member
  
Join Date: Sep 2005
Posts: 33
 

Default

That's exactly what I needed. Thanks so much!

__________________
X-Cart Gold 4.0.15 on Linux machine
Modules:
Features Comparison
Product Configurator
Fancy Categories (turned off)
Reply With Quote
  #4  
Old 09-21-2005, 11:30 AM
 
weckie weckie is offline
 

eXpert
  
Join Date: Feb 2005
Location: Netherlands
Posts: 220
 

Default

can this be done also for the company logo.

I want next: when customer enters site display the default normal logo, if he goes further i want to display an other logo.

And even more i want that when i customers goes for instance to a product, i want another logo to be displayed...

Is this possible, if so, how?

Thnx in advance
__________________
Herman Steijn

Using: X-cart 4.5.4
AT: http://www.weckonline.com LIVE
Reply With Quote
  #5  
Old 09-21-2005, 11:37 AM
 
weckie weckie is offline
 

eXpert
  
Join Date: Feb 2005
Location: Netherlands
Posts: 220
 

Default

Already found it, it can be done.
__________________
Herman Steijn

Using: X-cart 4.5.4
AT: http://www.weckonline.com LIVE
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 09:49 PM.

   

 
X-Cart forums © 2001-2020