Posted by nemchenk on September 15, 2009 at 3:17pm
4 followers
Jump to:
| Project: | Vocabulary Index |
| Version: | 6.x-3.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed |
Issue Summary
I needed to be able to see all children of a term when viewing it from this module, so have added a new admin option called "Show Children". When this is set for a Vocab Index Block or Page, "/all" is appended to the URL of each term, thus showing all nodes marked with any child terms as well.
Patch attached if anyone else finds this useful.
| Attachment | Size |
|---|---|
| show_children.patch | 7.03 KB |
Comments
#1
Oh, PS, you need to "Empty cache" when changing the "Show Children" option for changes to show up.
#2
[Wrong issue]
#3
#4
Tested, works as advertised, and answers the question I asked in http://drupal.org/node/569968.
Please commit.
Thanks for this contribution!
#5
Ah, I already wondered about that.
Good to hear that it works. We'll need a code review before this gets committed though.
#6
I don't see any difference besides the trailing /all
The child nodes are displayed only if there are no child terms. I would like to see them both
#7
> I don't see any difference besides the trailing /all
I'm not sure what you mean, robbertnl. Adding the "/all" is what my patch does, so I'm not sure what you were expecting to see? Perhaps if you posted a feature request with more of an explanation, it would make things clearer?
#8
I have created a vocabulairy tree like this:
'Term one'
-'Term one_child1'
-'Term one_child2'
'Term two'
'Term three'
------------------------
I've got nodes (e.g. NodeA) tagged with 'Term one' term, but i have also some nodes tagged with 'Term one_child1' (e.g. NodeB).
------------------------
I want this:
'Term one'
-NodeA
-'Term one_child1'
--NodeB
-'Term one_child2'
'Term two'
'Term three'
------------------------
What i get is:
'Term one'
-'Term one_child1'
-'Term one_child2'
'Term two'
'Term three'
Currently i can only see nodes tagged with a term if the term doesn't have any childs. If the term does have some childs, it just expends the menu
#9
That's not quite what my patch does -- it shows you NodeA and NodeB if you click on "Term one". What you are looking for, if I have understood correctly, is a sort of tree view which would show terms *and* nodes, not just terms.
#10
Exactly, sorry I misunderstood what your patch does
#11