| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
different side menus on different pages | |||
![]() |
|
||
|
|
Thread Tools | Search this Thread |
|
#1
|
|||||||
|
|||||||
|
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
__________________
x-cart 4.0.5 (live and heavily modded) Server: freebsd |
|||||||
|
#2
|
|||||||||
|
|||||||||
|
You have to use conditionals in your home.tpl
|
|||||||||
|
#3
|
|||||||
|
|||||||
|
cheers jon, you couldnt give me an example to follow could you?
__________________
x-cart 4.0.5 (live and heavily modded) Server: freebsd |
|||||||
|
#4
|
|||||||||
|
|||||||||
|
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:
|
|||||||||
|
#5
|
|||||||
|
|||||||
|
Ok gotcha, i'll give it a go in the mornin
__________________
x-cart 4.0.5 (live and heavily modded) Server: freebsd |
|||||||
|
#6
|
|||||||
|
|||||||
|
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:
__________________
x-cart 4.0.5 (live and heavily modded) Server: freebsd |
|||||||
|
#7
|
|||||||||
|
|||||||||
|
Code:
|
|||||||||
|
|
|||
|
X-Cart forums © 2001-2020
|
|||