Totally Zenned
- Join Date:
- Jan 2009
- Posts:
- 2,085
- Plugin Contributions:
- 0
Additional Sidebox Only to Appear in current_category_id
If anyone could help me solve this then it'd be a real help. I'm struggling with a rather complex navigation system which I wont bore you with, but basically I'm planning to add an additional sidebox for each main category which must only appear when the category ID is the one specific to the box contents.
For Example, when someone clicks on the Lingerie category (http://www.dystynction.com/index.php?main_page=index&cPath=1_8) then I want the additional sidebox I created to appear.
I don't want this sidebox visible in any other category.
The existing contents of the relevant sidebox.php is this:
$show_lingerie_sizes_sidebox = true;
if ($show_lingerie_sizes_sidebox == true) {
require($template->get_template_dir('tpl_lingerie_sizes_sidebox.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_lingerie_sizes_sidebox.php');
$title = BOX_HEADING_LINGERIE_SIZES_SIDEBOX;
$title_link = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
?>
I have read from another thread that I might be able to add something like this:
IF ($current_category_id=='1_8') {
$show_lingerie_sizes_sidebox == true;
} else {
$show_lingerie_sizes_sidebox == false;
}
..........but when I try to add this it just doesn't work...
Can anyone please help me write this little piece of code? Thanks so much to anyone who can help me :-)