Forums / Basic Configuration / how would I make the categories expand?

how would I make the categories expand?

Locked

Views: 19,759

Results 1 to 20 of 57
This thread is locked. New replies are disabled.
31 Jul 2006, 10:31 PM
#1
metamp avatar

metamp

New Zenner

Join Date:
Jul 2006
Posts:
19
Plugin Contributions:
0

how would I make the categories expand?

how would I make the categories expand when the site loads?

31 Jul 2006, 11:42 PM
#2
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Location:
Lake Havasu, AZ
Posts:
1,090
Plugin Contributions:
0

Re: how would I make the categories expand?

This is found under Tools/Configuration/Layout Settings :

Categories - Always Open to Show SubCategories
Always Show Categories and SubCategories
0= off, just show Top Categories
1= on, Always show Categories and SubCategories when selected

When the world gets in my face I say Have A Nice Day.

1 Aug 2006, 2:30 AM
#3
metamp avatar

metamp

New Zenner

Join Date:
Jul 2006
Posts:
19
Plugin Contributions:
0

Re: how would I make the categories expand?

Thanks

This works only when selected
is there a way to show all subcategories on page load so I don't have to click it to expend

29 Aug 2006, 10:49 AM
#4
yawningmonk avatar

yawningmonk

New Zenner

Join Date:
Aug 2006
Posts:
11
Plugin Contributions:
0

Re: how would I make the categories expand?

Hi,

I've been searching for a contribution with this functionality for quite a while and it seems like i'm not the only one.

Most of the suggestions refers to dead links but eventually was able to locate a working contrib (even though there's a slightly annoying bug).

Just a suggestion to the ZC Team....

This is found under Tools/Configuration/Layout Settings :
Categories - Always Open to Show SubCategories
Always Show Categories and SubCategories
0= off, just show Top Categories
1= on, Always show Categories and SubCategories when selected

Wouldn't it be useful and logical to have an extra option switch which displayed the categories fully expanded?

i.e.

2= on, show both Top Categories & Subcategories

Maybe the ZC Team can add this option in future upgrades (v1.3.x) or at least in v1.4 with the Modified PO Tree Traversal changes.

Thnx.

YM.

29 Aug 2006, 11:27 AM
#5
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: how would I make the categories expand?

There is a recent topic about this.
Expanding the categories

Also another
Categories Menu, YahooTreeMenu With AJAX

Think that they can be all expanded with some code change, try it yourself.

.

A New Starter again

31 Aug 2006, 3:54 PM
#6
andrew_yer avatar

andrew_yer

New Zenner

Join Date:
Feb 2006
Posts:
59
Plugin Contributions:
0

Re: how would I make the categories expand?

seethrou:

Also another
Categories Menu, YahooTreeMenu With AJAX
Think that they can be all expanded with some code change, try it yourself.
Let me say as the author of the YahooTreeMenu With AJAX contribution. :)

I have made this menu without AJAX before this one with AJAX. I had not it published. :)
You can found it here:
http://zen-cart.org.ua/download/yahoo_tmenu_zc_1.2.7_0.1b.zip

This one generates complete menu tree, not only top level and selected branch.
If you call expandAll() method of the tree object right before tree.draw() the TreeMenu will be expanded. :) (http://developer.yahoo.com/yui/docs/treeview/YAHOO.widget.TreeView.html#expandAll)

Andrew.

17 Oct 2006, 1:03 PM
#7
lucianman avatar

lucianman

Zen Follower

Join Date:
Sep 2004
Posts:
245
Plugin Contributions:
0

Re: how would I make the categories expand?

how do i make my ajax menu to stay expandable

1 Mar 2009, 7:41 AM
#8
dimmyr avatar

dimmyr

New Zenner

Join Date:
Jun 2008
Posts:
54
Plugin Contributions:
0

Re: how would I make the categories expand?

So has anyone solved this one? How do I make the AJAX version have the subcategories expanded upon the load of the main page?

1 Mar 2009, 7:54 AM
#9
gjh42 avatar

gjh42

Black Belt

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

Re: how would I make the categories expand?

Are you set on using this particular "AJAX" mod? Or do you just want the categories expanded? There are several more recent expanded categories mods; the one I have heard the most good reports about is fragfutter's Uncollapsed Categories Tree, available from his site and referenced in the forum thread of the same name.

1 Mar 2009, 3:40 PM
#10
dimmyr avatar

dimmyr

New Zenner

Join Date:
Jun 2008
Posts:
54
Plugin Contributions:
0

Re: how would I make the categories expand?

My main issue with his and the default categories is that they are so ugly.

AJAX one is very pretty, but alas I have no idea how to make it expanded by default.

1 Mar 2009, 4:38 PM
#11
gjh42 avatar

gjh42

Black Belt

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

Re: how would I make the categories expand?

What is inherently ugly about them? You can change anything you like about the appearance with CSS in the stylesheet. Categories Dressing gives almost infinite flexibility, but only applies to the standard sidebox.

How does the AJAX sidebox look different?

1 Mar 2009, 4:49 PM
#12
dimmyr avatar

dimmyr

New Zenner

Join Date:
Jun 2008
Posts:
54
Plugin Contributions:
0

Re: how would I make the categories expand?

It's dynamic, and has nice arrows next to cats.

gjh42:

What is inherently ugly about them? You can change anything you like about the appearance with CSS in the stylesheet. Categories Dressing gives almost infinite flexibility, but only applies to the standard sidebox.

How does the AJAX sidebox look different?

1 Mar 2009, 5:50 PM
#13
gjh42 avatar

gjh42

Black Belt

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

Re: how would I make the categories expand?

Dynamic as in only the top cats show, and when you mouse over one it scrolls down to show its subs? That's something that I think you need js for - the CSS flyout menu doesn't scroll down in a column. The arrows can be added to any category box with CSS.

1 Mar 2009, 6:03 PM
#14
dimmyr avatar

dimmyr

New Zenner

Join Date:
Jun 2008
Posts:
54
Plugin Contributions:
0

Re: how would I make the categories expand?

The thing is - I am not a programmer, so I use pre-canned stuff. I don't know half the things you just said. All I know is that I need a menu that displays all subcats to begin with and doesn't have all the ugly ASCII pipes and underscores for dir branches.

1 Mar 2009, 6:06 PM
#15
gjh42 avatar

gjh42

Black Belt

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

Re: how would I make the categories expand?

Those pipes and underscores are editable in admin > Configuration > Layout Settings.

And yes, I think they're ugly too.

Do you want the subcats always showing? Then the Uncollapsed Categories Tree can be styled to look however you want. I can advise if you need help there.

1 Mar 2009, 6:10 PM
#16
dimmyr avatar

dimmyr

New Zenner

Join Date:
Jun 2008
Posts:
54
Plugin Contributions:
0

Re: how would I make the categories expand?

Sorry for ignorance, but I can put nicer image-based branches in there using the admin interface, and make sure the long cat names don't wrap to start at the next line without the indent?

1 Mar 2009, 6:17 PM
#17
gjh42 avatar

gjh42

Black Belt

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

Re: how would I make the categories expand?

The wrapping is not controllable in the standard admin interface. It could be handled to some degree with CSS - it would depend on exactly what layout you wanted.

It may be possible to use an image for the categories subcategories separator in admin - I haven't tried it, but HTML works there, so it should be ok.

6 Mar 2009, 2:09 PM
#18
gloreo avatar

gloreo

New Zenner

Join Date:
Mar 2009
Posts:
2
Plugin Contributions:
0

Re: how would I make the categories expand?

metamp:

Thanks

This works only when selected
is there a way to show all subcategories on page load so I don't have to click it to expend

I also want to know how to show all subcategories on page load.

Cars (main cat)
Plugs (sub cat)
Wheels (sub cat)

Engine (main cat)
Oil (sub cat)
Plugs (sub cat)

Is there a category like that?

Thx

6 Mar 2009, 2:28 PM
#19
dimmyr avatar

dimmyr

New Zenner

Join Date:
Jun 2008
Posts:
54
Plugin Contributions:
0

Re: how would I make the categories expand?

Same here, how do you make all subcats expanded by default?