Page 4 of 4 FirstFirst ... 234
Results 31 to 37 of 37
  1. #31
    Join Date
    May 2011
    Posts
    20
    Plugin Contributions
    0

    Default 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

  2. #32
    Join Date
    Jun 2009
    Location
    Orange County, California
    Posts
    544
    Plugin Contributions
    18

    Default 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.

  3. #33
    Join Date
    Jun 2009
    Location
    Orange County, California
    Posts
    544
    Plugin Contributions
    18

    Default 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']) . '">';
    		}

  4. #34
    Join Date
    May 2011
    Posts
    20
    Plugin Contributions
    0

    Default 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

  5. #35
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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.

  6. #36
    Join Date
    May 2011
    Posts
    20
    Plugin Contributions
    0

    Default Re: Uncollapsed Categories Tree

    thank you Glenn, doing it now

  7. #37
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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

 

 
Page 4 of 4 FirstFirst ... 234

Similar Threads

  1. Ssimple categories tree
    By Laki in forum Addon Sideboxes
    Replies: 0
    Last Post: 15 Sep 2015, 04:32 PM
  2. Categories tree modifications
    By Dan123 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Mar 2012, 09:21 AM
  3. v150 Set up Categories Dressing w/Uncollapsed Cat Tree
    By spikeperformance in forum Addon Templates
    Replies: 2
    Last Post: 21 Feb 2012, 05:26 AM
  4. Hide categories and tree categories sidebox
    By adowty in forum Addon Sideboxes
    Replies: 1
    Last Post: 16 Aug 2011, 03:09 PM
  5. Categories tree
    By swaper in forum Addon Sideboxes
    Replies: 5
    Last Post: 3 Feb 2011, 02:11 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR