Last edited by kuroi; 11 Apr 2008 at 02:48 PM.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
Hi,
I use the blank sidebox for a legend, that I'd like to show only on the product-listing and product-description pages.
But how...
Thanks in advance, anna
hi SHokuf,
I did find a solution, probably not very elegant, but it works:
// test if box should display
$show_my_sidebox = false;
if ($_GET['main_page']=='product_info' or $_GET['main_page']=='index') {
$show_my_sidebox = true;
}
if ($this_is_home_page) {
$show_my_sidebox = false;
}
The HomePage is also an indexpage, that's why I had to add the second part.
regards, anna
sorry, I got confused,
for the productpages, you'd need:
// test if box should display
$show_my_sidebox = false;
if ($_GET['main_page']=='product_info') {
$show_my_sidebox = true;
}
Awesome! That worked!
Thanks so much!
Ok, so if I wanted to show a different sidebox depending on the base category the user was viewing, how would i find out the category and set the sidebox to display (rather than setting it not to display)?
Sorry if has been answered before.
I want to Keep the Sidebars open ONLY for the main page and then turned off for all other pages.
How can I do that?