Im getting the HideCategories to work but all the Individual Category Headings has disappeared.
Printable View
Im getting the HideCategories to work but all the Individual Category Headings has disappeared.
Got it to work now :)
Is it possible to enter any links and have it displayed in the Categories Sidebox? For example, add a link to Privacy Notice and have that display at the bottom of the Categories Sidebox?
You could add that as a heading for one of the links at the bottom of the sidebox, styled to look like another link.
Alternatively, you could edit tpl_categories.php and put the link code there to get it at the very bottom of the sidebox.
sorry for delay in reply again, I had to make necessary changes on site design in meantime, on my client suggestion:bigups:
I forgot to menition that sidebox I set-up on left side on my page is classic categories.php (which is now showing only 1st level subcategories). So I dont know if that changes situation to-much beside left/right position :huh:
This I have finished, with note that categories.php (which is showing Car Brands) is on left and chcategories.php (which is showing Car Part Type) is in the right columnQuote:
2: Activate both the chcategories sidebox as is, and the categories sidebox on the right.
This is part I having trouble with.. In "categories_dressing_defines.php" display level looks like this:Quote:
3: Make stylesheet rules that will hide lower subcats in the chcategories box and first level cats in the categories box.
"define('CAT_BOX_ACTIVE_LEVEL', '0|1|1');"
and that OK regarding left sidebox categories.php, but how can I set chcategories to display level '0|5|4' at same time?
And also I dont understand part about stylesheet rules which will hide lower subcats in the chcategories?
Is it not possible to have margins or padding or have a background image set in a ul#catGroup?
I can make borders, adjust fonts, set the height and width of the group but I can't position anything properly :(
At least if I knew it wasn't possible I could give up trying and have a go at something else.
adi2009 - My last post to you was specific about the location of categories and chcategories. It won't work correctly with them the other way. And you won't need to have two different settings, once a small change is made to a function in categories_dressing_functions.php. Essentially we need to make the code treat first level subcats as if they were top level cats. I will look at that soon and post the change required.
The stylesheet code will be something like
#chcategories ul ul ul {/*hide all deeper than first subcategory lists - left box*/
display: none;
}
#categoriesContent>ul>li>ul>li>a {/*hide only first level subcategories - right box*/
display: none;
}
In /includes/functions/extra_functions/categories_dressing_functions.php, find thisand add this just before itPHP Code:
}//switch
if ($test_level){
switch ('true'){
case ($cat_box_active_level[1] > $cat_depth):
to get thisPHP Code:
case 7://full active subtree, others per level - treat first subcat like top - customized 20100205 for madijelovi
if($cPath_top != $path_top){//only 1 top cat's subs
$skip_cat = 1;
break;
}
$cPath_top_special = (int)substr_replace($_GET['cPath'],'',0,strpos($_GET['cPath'],'_')+1) ;//remove before & incl 1st occurrence of _ in string
$path_top_special = (int)substr_replace($path,'',0,strpos($path,'_')+1) ;//remove before & incl 1st occurrence of _ in string
if($cPath_top_special != $path_top_special) $test_level = 1;
break;
I haven't tested this, and you may need something slightly different, but it will be similar. Let me know what happens.PHP Code:
case 7://full active subtree, others per level - treat first subcat like top - customized 20100205 for madijelovi
if($cPath_top != $path_top){//only 1 top cat's subs
$skip_cat = 1;
break;
}
$cPath_top_special = (int)substr_replace($_GET['cPath'],'',0,strpos($_GET['cPath'],'_')+1) ;//remove before & incl 1st occurrence of _ in string
$path_top_special = (int)substr_replace($path,'',0,strpos($path,'_')+1) ;//remove before & incl 1st occurrence of _ in string
if($cPath_top_special != $path_top_special) $test_level = 1;
break;
}//switch
if ($test_level){
switch ('true'){
case ($cat_box_active_level[1] > $cat_depth):
You will want a define setting of '7|4|5' ; change the 4 and 5 if needed, but you must use the 7.
zubenubi - All of the styling you want should be possible. Post a link to see your site so I can advise.
"Apart from hard-coding it in the tpl_categories.php, is there other way to have a group of links (around 10 manufacturer links) to show as a category sidebox without creating the folders in admin?"
You can code the links into a "heading" for a category or link in categories_dressing_defines.php, or hard-code them in tpl_categories.php.
You might be able to use the manufacturers sidebox, remove its heading, and make it stick tight to the bottom of the categories box so it looks continuous (all with CSS), or put the mfr links in the ez-page sidebox and do the same.