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)
-   -   Testimonials only on home page (https://forum.x-cart.com/showthread.php?t=35318)

keystone 11-09-2007 12:49 PM

Testimonials only on home page
 
I would like to add some testimonials on my site but would only like them to show up on my home page. ( I know there are a few mods out for rotating random testimonials but I don't want to spend anymore money at the moment). I was thinking of using an {if} statement in the customer/home.tpl to create a new box with the testimonials in it but only if it was the home page. Something like

{if $main eq "HOME"}
sfgfgsfgfgssg
{/if}

I would place it right below the "help" box.
I don't know what the right text is to use in place of "HOME" or if there is a better way to accomplish the same thing.
Thanks

balinor 11-09-2007 03:46 PM

Re: Testimonials only on home page
 
{if $main eq "catalog" and $current_category.category eq ""}
show text
{/if}

Moving to Template Editing.


All times are GMT -8. The time now is 05:29 PM.

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