Re: Uncollapsed Categories Tree
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 idea to make the top level category 'unclickable' ?
thanking you.
adam
Re: Uncollapsed Categories Tree
open \includes\templates\YOUR_TEMPLATE\sideboxes\tpl_categories.php and comment out this line:
Code:
$content .= '<a class="' . $new_style . '" href="' . zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']) . '">';
and this one:
Code:
$content .= '</a>';
OR you can change the <a> tag to <span> tag. There may be some adjustments you have to make in CSS styling, it depends on your template.
Re: Uncollapsed Categories Tree
Sorry, I tested it and realize it actually removes ALL your category links. You would actually want to replace the line with an if/then statement like so:
Code:
if ($box_categories_array[$i]['top'] == 'true') {
$content .= '<span class="' . $new_style . '">';
} else {
$content .= '<a class="' . $new_style . '" href="' . zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']) . '">';
}
Re: Uncollapsed Categories Tree
Hi, thanks for the reply, but the tpl_categories you use in your example is the default. the categories dressing mod actually replaces this with a new tpl_categories, which don't have the lines you refer to. I understand the logic but struggling to apply it to the correct tpl_categories.
if you get more time, i'd appreciate further advice.
thanks, adam
Re: Uncollapsed Categories Tree
You should be asking in the Categories Dressing support thread, since it is a Cat Dressing issue rather than an Uncollapsed Categories issue.
I am away from home now, but if you post there I will answer when I get back to my mod files tomorrow.
Re: Uncollapsed Categories Tree
thank you Glenn, doing it now
Re: Uncollapsed Categories Tree
Someone just commented that the ch_categories mod is no longer available. It is still at fragfutter's site, but you have to look very carefully to find it (page 2 of the "Software" category). Here is a direct link to the correct location (as of February 2, 2014):
http://www.held-im-ruhestand.de/soft...art-categories