Site maintenance: Tuesday 17 Nov, from 10:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Addon Sideboxes / Uncollapsed Categories Tree

Uncollapsed Categories Tree

Started by fragfutter on 17 Jun 2007, 10:39 AM · Views: 20,377

Results 21 to 37 of 37
24 Apr 2008, 6:38 PM
#21
littleolemedesigns avatar

littleolemedesigns

Zen Follower

Join Date:
Dec 2007
Posts:
142
Plugin Contributions:
0

Uncollapsed Categories Tree

You know what.. I just did it the cheat way.. and did my admin settings under Configuration--> Layout Settings as follows:

Categories - Always Show on Main Page: 1
Main Page - Opens with Category: 2_3_4_5_6_0

It works fine like that.

I am still curious about that splash page though.:smile:

18 Aug 2008, 5:44 AM
#23
fiji avatar

fiji

New Zenner

Join Date:
Oct 2007
Posts:
42
Plugin Contributions:
0

Re: Uncollapsed Categories Tree

great mod, thanks

7 Feb 2010, 4:38 AM
#24
alteredvision avatar

alteredvision

New Zenner

Join Date:
Feb 2010
Posts:
41
Plugin Contributions:
0

Re: Uncollapsed Categories Tree

When I add in this MOD it creates the box on the left side but it makes it 3 different times.

It is on a local machine so I can not give a link.

Zen Cart 1.3.8a
Database Patch Level: 1.3.8

7 Feb 2010, 11:46 PM
#25
alteredvision avatar

alteredvision

New Zenner

Join Date:
Feb 2010
Posts:
41
Plugin Contributions:
0

Re: Uncollapsed Categories Tree

Maybe I am unclear about what it is doing. Is there any updates to this or is there a better way to make it so the tree in always uncollapsed?

Sideboxes display as follows:
Categories List show expanded
Logo area
Categories List show expanded
Gallery area
Categories List show expanded
Banner - Side

17 May 2011, 4:10 PM
#26
dimsumgurl avatar

dimsumgurl

Zen Follower

Join Date:
Dec 2009
Location:
Canada
Posts:
160
Plugin Contributions:
0

Re: Uncollapsed Categories Tree

I really like this idea and tried to implement it on my site.. however... Im not sure why the chcategories is in the middle of my site instead of on the left...

thelittlestgiftboutique.com

[IMG]http://img803.imageshack.us/img803/5186/uncollapse.jpg[/IMG]

17 May 2011, 4:22 PM
#27
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Uncollapsed Categories Tree

It may be something about the way you have merged BetterCategories with Uncollapsed Categories Tree. What did you actually do? I don't think BC would apply to the chcategories sidebox without some customization... or maybe it would, using the regular tpl_categories.php file as Uncollapsed Categories does. It may be filtering through the BC version of the file.

If you want to style the expanded categories, it would be cleaner to just use Categories Dressing which I can see you have at least partially installed (stylesheet_chcategories_dressing.css).

17 May 2011, 11:45 PM
#28
dimsumgurl avatar

dimsumgurl

Zen Follower

Join Date:
Dec 2009
Location:
Canada
Posts:
160
Plugin Contributions:
0

Re: Uncollapsed Categories Tree

Hey, I somehow fixed it.. I had categories listing box installed... I didn't clean up the files properly when I removed it.. and I had that enabled in sideboxes controller. I also had to clean up the stylesheet.css.

18 May 2011, 1:55 AM
#29
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Uncollapsed Categories Tree

Having bits of multiple mods installed which all affect the same element is pretty much guaranteed to lead to unexpected results in some form...
Glad it's sorted now.

28 Jun 2011, 9:54 PM
#30
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: Uncollapsed Categories Tree

For those of you requesting to show only 1 level of subcategories... try the following:

  1. Edit Line 36 in /includes/templates/YOUR_TEMPLATE/sideboxes/tpl_categories.php
$content .= '<li class="' . $new_style . '">';
  1. Add this code to your template's CSS file:
li.category-products {display: none;}

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.

13 Aug 2011, 2:15 AM
#31
captaincarlton avatar

captaincarlton

New Zenner

Join Date:
May 2011
Posts:
20
Plugin Contributions:
0

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

15 Aug 2011, 4:41 PM
#32
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

Re: Uncollapsed Categories Tree

open \includes\templates\YOUR_TEMPLATE\sideboxes\tpl_categories.php and comment out this line:

$content .= '<a class="' . $new_style . '" href="' . zen_href_link(FILENAME_DEFAULT, $box_categories_array[$i]['path']) . '">';

and this one:

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

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.

15 Aug 2011, 4:48 PM
#33
jackie_taferner avatar

jackie_taferner

Totally Zenned

Join Date:
Jun 2009
Location:
Orange County, California
Posts:
547
Plugin Contributions:
3

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:

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

Jackie Taferner - JT Website Design
Custom Website Design and Ecommerce
Support the community. Don't Private Message, post your questions in the forum.

5 Sep 2011, 12:10 AM
#34
captaincarlton avatar

captaincarlton

New Zenner

Join Date:
May 2011
Posts:
20
Plugin Contributions:
0

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 Sep 2011, 7:52 PM
#35
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

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 Sep 2011, 2:58 AM
#36
captaincarlton avatar

captaincarlton

New Zenner

Join Date:
May 2011
Posts:
20
Plugin Contributions:
0

Re: Uncollapsed Categories Tree

thank you Glenn, doing it now

2 Feb 2014, 7:46 PM
#37
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

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/software/zen-cart-categories