How do you want to change the sidebox size? Height? Width?
If you want only top categories showing, that is best done with the admin setting in Configuration > Layout Settings > Categories - Always Open to Show SubCategories > set to 0.
Printable View
How do you want to change the sidebox size? Height? Width?
If you want only top categories showing, that is best done with the admin setting in Configuration > Layout Settings > Categories - Always Open to Show SubCategories > set to 0.
webdca - I am not seeing any characters/marks on hover, in Firefox or IE9 regular or compatibility view.
That's not actually related to Categories Dressing, but a general styling ability; you can address the categories sidebox as a whole with
#categories {width: 123px !important;}
@gjh42
I have categories dressing v2_8 installed. I have all my top cats and sub cats1 showing on the home page. A couple of my top cats have more than 10 sub cats1, is there a way to change it to where a max of 10 sub cats1 are displayed on the home page?
That would be new custom coding. I'm not sure offhand where you would get the info, but you would need to add something that keeps a count of subcats of the current top cat and suppress display of ones beyond 10... If there could be sub-subcats processed in there too, it could get really messy. Probably the best way would be to alter the base category-tree class, which I have not done and can't advise on.
Hi guys,
I am using the Uncollapsed Categories Tree. All is working fine. What I would like to do is 'unlink' the top level category, which I don't really need. Currently, if I click on the top level category a page load and lists each subcategory in thumbnail format. It's a bit redundant, as the sub cats are always showing anyway.
Any ideas ? Note that this mod includes a new tpl_categories file
adam
You would need to apply the code described by jackie.taferner in the other thread to v2.7.3's tpl_categories.php, line 51:and line 62:PHP Code:
$content .= ' <li class="cat-' . $new_style . '"><a class="cat-' . $active_class . $cat_name_display[0] . '" href="' . zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']) . '">';
Change toPHP Code:
$content .= '</a>';
andPHP Code:
if ($box_categories_array[$i]['top'] == 'true') {
$content .= ' <li class="cat-' . $new_style . '"><span class="cat-' . $active_class . $cat_name_display[0] . '">';
} else {
$content .= ' <li class="cat-' . $new_style . '"><a class="cat-' . $active_class . $cat_name_display[0] . '" href="' . zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']) . '">';
}
You would also need to do some styling to make these spans look as you want, since some of the <a> styling will no longer apply.PHP Code:
if ($box_categories_array[$i]['top'] == 'true') {
$content .= '</span>';
} else {
$content .= '</a>';
}
Hi, I have been trying to develop a navigation system for a development site. But I am having limited success.
I have four parent categories which I have displayed across the top of the web page, I am using the Categories Dressing mod set to only show subcategories in the Category Sidebox. This is great and exactly how I want my navigation to be. (See attached)
But I get an empty Category Sidebox on all pages where Subcategories are not displayed (see attached). Can someone please help me and show me where I am going wrong.
How can I have the Category Sidebox turned off or not displayed on pages where Subcategories are not shown? For example, the home, log-in, cart, account, log-off page. EZ-Pages, Define Pages etc.
Failing this I will have to redesign my navigation or styling. :frusty:
I cannot workout how to do it. It is on my local WAMP set up so sadly no live link available.
Thanks
This is not a Categories Dressing issue; you can fix it by editing /includes/modules/sideboxes/your_template/categories.php (not a Cat Dressing file).There might possibly be a product page that doesn't involve a cPath for some kinds of display, so if you don't get the categories sidebox in a place you want it, post back and I'll take a look at adding the right extra condition.PHP Code:
* @version $Id: categories.php 2718 2005-12-28 06:42:39Z drbyte $
*/
//add this line to turn sidebox off for non-category/product pages
if ($cPath) {
$main_category_tree = new category_tree;
$row = 0;
$box_categories_array = array();
// don't build a tree when no categories
$check_categories = $db->Execute("select categories_id from " . TABLE_CATEGORIES . " where categories_status=1 limit 1");
if ($check_categories->RecordCount() > 0) {
$box_categories_array = $main_category_tree->zen_category_tree();
}
require($template->get_template_dir('tpl_categories.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_categories.php');
$title = BOX_HEADING_CATEGORIES;
$title_link = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
//add this line to turn sidebox off for non-category/product pages
}
?>