| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
{if} statement to show content only on home page | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
{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:
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) |
|||||||
#2
|
|||||||||
|
|||||||||
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 |
|||||||||
#3
|
|||||||
|
|||||||
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) |
|||||||
#4
|
|||||||
|
|||||||
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 |
|||||||
#5
|
|||||||
|
|||||||
Already found it, it can be done.
|
|||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|