![]() |
different side menus on different pages
Is it possible to have different side menus (like bestseller, login etc.) depending on what page you are at.
i.e if im at product.tpl , i can show recommended other products but I dont want to display the news box. They all seem to be controlled from the home.tpl but not sure how to control them from other pages. x-cart 4.0.5 |
You have to use conditionals in your home.tpl
|
cheers jon, you couldnt give me an example to follow could you?
|
Open up your skin1/customer/home_main.tpl
You'll see a wack of conditionals using the $main variable. You could implement similar things in home.tpl For example: Code:
{if $main eq "register"} |
Ok gotcha, i'll give it a go in the mornin
|
Ok cheers Jon,
But what happens if you want it on several pages but not on some can I use & (yes i know I should really read up on smarty) for example i want to hide the news.tpl on just the product and products tpls could I use Code:
{if $main ne "product" & "products"} |
Code:
{if $main ne "product" AND $main ne "catalog"} |
All times are GMT -8. The time now is 04:57 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.