
Originally Posted by
Adrian Ciocîrlan
Using the 2.1b on 1.5.1, indeed I need to keep my Categories menu (in this case the left side-box), I thought showing it only on the main page would do it, that's why i asked...
I want to give it a try and do what you said but I'm not sure I understand, "add an anchor" ?
A
In:
/includes/templates/YOUR_TEMPLATE_FOLDER/common/tpl_main_page.php
Find:
PHP Code:
<!-- bof breadcrumb -->
<?php if (DEFINE_BREADCRUMB_STATUS == '1' || (DEFINE_BREADCRUMB_STATUS == '2' && !$this_is_home_page) ) { ?>
<div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
<?php } ?>
<!-- eof breadcrumb -->
Change to:
PHP Code:
<!-- bof breadcrumb -->
<?php if (DEFINE_BREADCRUMB_STATUS == '1' || (DEFINE_BREADCRUMB_STATUS == '2' && !$this_is_home_page) ) { ?>
<div id="navBreadCrumb" name="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
<?php } ?>
<!-- eof breadcrumb -->
Then in:
/includes/templates/YOUR_TEMPLATE_FOLDER/sideboxes/tpl_categories.php
Find:
PHP Code:
// skip if this is for the document box (==3)
} else {
$content .= '<a class="' . $new_style . '" href="' . zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']) . '">';
Change to:
PHP Code:
// skip if this is for the document box (==3)
} else {
$content .= '<a class="' . $new_style . '" href="' . zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']) . ' #navBreadCrumb">';