Hi Marcp
Thank you for coming up with this simple and wonderful module.
Is it possible to make the terms in the pull-down menu show in a hierarchical format.
That is, child terms will have a hyphen '-' in front.
See attached screen shot of the Taxonomy menu from Taxonomy Browser module.
Thank you.
Gui
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | jump_315416_tax_hierarchy.patch | 650 bytes | scottrigby |
| taxonomybrowser.jpg | 14.1 KB | cmgui |
Comments
Comment #1
marcp commentedTry replacing the line in the function
jump_menu_get_taxo_options()that says:with:
...and let us know how it goes.
I'd like to generalize this out and make it easier to theme, but this is a start.
Comment #2
cmgui commentedhi marcp
it works!
thank you.
gui
Comment #3
2ndChanceTech commentedsubscribing, and verifying this works as described.
It would be nice if the parents could be bolded, currently trying to figure this out.
Comment #4
scottrigbyHi marcp,
It's an old issue - and i often use Quick Menu instead (maybe would be good to merge efforts @ some point?).
Anyway, for now Jump has taxonomy support (unlike Quick Menu)... and the taxonomy list works better with your suggestion in #1
attaching a patch :)
Comment #5
seaneffel commentedConfirming that the patch in #4 works like a charm. Correctly filters and displays hierarchical terms in Jump dropdown. You can see the proof in the pudding: http://www.cctcvambridge.org/welcome
Ready to be committed.
I'm about to open up a second issue for adding user prefs on how the Jump menu should be displayed.
Comment #6
gooddesignusa commentedThanks Scott. Patch worked for me.
Comment #7
nicholas.alipaz commentedThis feature didn't get into 1.x. We are glad to accept a new patch against 2.x branch.
Comment #8
nathan573 commentedHere is my version of jump_menu_get_taxo_options, which takes the top level taxonomy items and makes groups out of them to contain their children:
Comment #9
jasonawant@nathan573,
Thanks for posting this snippet to the issue queue. For taxonomy vocabularies without any parent terms, the jump menu does not display any options.
I also noticed that when using this snippet and selecting a jump menu, it triggers the admin menu to expand.
I'll post back if I solve anything.
Thanks, jwant.
Comment #10
vaccinemedia commentedWould it be possible for a similar function/ feature to exist for the hierarchy of normal menus too so that the second level links are visible?