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?
Views: 19,759
New Zenner
how would I make the categories expand when the site loads?
Totally Zenned
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.
New Zenner
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
New Zenner
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.
Totally Zenned
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
New Zenner
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.
Zen Follower
how do i make my ajax menu to stay expandable
New Zenner
So has anyone solved this one? How do I make the AJAX version have the subcategories expanded upon the load of the main page?
Black Belt
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.
New Zenner
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.
Black Belt
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?
New Zenner
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?
Black Belt
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.
New Zenner
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.
Black Belt
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.
New Zenner
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?
Black Belt
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.
New Zenner
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
New Zenner
Same here, how do you make all subcats expanded by default?
New Zenner
i found something.
Tell staff why this post should be reviewed.