Postponed
Project:
Vocabulary Index
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Sep 2009 at 15:17 UTC
Updated:
11 Oct 2009 at 13:13 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| show_children.patch | 7.03 KB | nemchenk |
Comments
Comment #1
nemchenk commentedOh, PS, you need to "Empty cache" when changing the "Show Children" option for changes to show up.
Comment #2
xano[Wrong issue]
Comment #3
xanoComment #4
BayouBill commentedTested, works as advertised, and answers the question I asked in http://drupal.org/node/569968.
Please commit.
Thanks for this contribution!
Comment #5
xanoAh, I already wondered about that.
Good to hear that it works. We'll need a code review before this gets committed though.
Comment #6
robbertnl commentedI 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
Comment #7
nemchenk commented> 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?
Comment #8
robbertnl commentedI 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
Comment #9
nemchenk commentedThat'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.
Comment #10
robbertnl commentedExactly, sorry I misunderstood what your patch does
Comment #11
xano