Go to term page when clicking a parent term in tree view
nemchenk - September 15, 2009 - 13:46
| Project: | Vocabulary Index |
| Version: | 6.x-3.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed |
Description
I needed a view very similar to the Tree view provided by this module, so made a couple of small modifications to create a "Static Tree" -- very similar to tree, but without the JavaScript hide/show.
I attach a patch of my changes.
Hopefully, this will be useful to someone else in the future!
| Attachment | Size |
|---|---|
| statictree.patch | 2.48 KB |

#1
Oops -- forgot to recurse when creating the patch!
#2
Thanks a lot for the effort. I'm sorry to say the same effect can be achieved by disabling (overriding) the JS file in the theme layer, about which you can find more information in the theming handbook here at drupal.org.
#3
That's true, but I wanted to be able to have the choice of a JS "active" tree or "static" tree, and from the Admin interface so non-techy people can select it :)
Yours,
nemchenk
#4
nemchenk said: "I wanted to be able to have the choice...so non-techy people can select it"
It makes a lot of sense to implement the option this way, for the reason nemchenk gives. It doesn't break anything and enhances the usability of the module. People shouldn't have to learn how to override themes just to get this functionality.
Xano, please reconsider the "won't fix" status and integrate this feature into code. TIA.
#5
This is a very careful postponed to a possible new version of Vocabulary Index. No guarantees though!
#6
Sure thing. Thanks, Xano!
#7
Very useful! I used the attached patch! Works as expected. Should go into the next release.
#8
Subscribe.