X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   {if} statement to show content only on home page (https://forum.x-cart.com/showthread.php?t=16752)

rightminddesigns 09-21-2005 09:09 AM

{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?

shan 09-21-2005 09:17 AM

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

look for welcome.tpl

rightminddesigns 09-21-2005 09:27 AM

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

:D

weckie 09-21-2005 11:30 AM

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

weckie 09-21-2005 11:37 AM

Already found it, it can be done.


All times are GMT -8. The time now is 01:23 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.