Hi All,
I'm looking to turn off my categories sidebox for my main_pages==
I have ez pages set for my products just don't want the categories sidebox to display when a user jumps to the other info, can some one help me with the code for this please, I was trying to rework a piece of code as below but got nowhere.
Here is a link to my site:http://www.crearty-kids.co.uk/creativity
Here is the code I was looking to rework - it was for banner box 2 (although there may be an easier way!)
// test if box should display
$show_banner_box2 = true;
if (SHOW_BANNERS_GROUP_SET8 == '') {
$show_banner_box2 = false;
}
// do not show if on advanced_search page
if ($current_page_base == 'advanced_search') {
$show_banner_box2 = false;
echo 'I am hiding!!' . $current_page_base;
}
if ($show_banner_box2 == true) {
$banner_box[] = TEXT_BANNER_BOX2;
$banner_box_group= SHOW_BANNERS_GROUP_SET8;
require($template->get_template_dir('tpl_banner_box2.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_banner_box2.php');
// if no active banner in the specified banner group then the box will not show
// uses banners in the defined group $banner_box_group
if ($banner->RecordCount() > 0) {
$title = BOX_HEADING_BANNER_BOX2;
$title_link = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
}


Reply With Quote

