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.

CommentFileSizeAuthor
show_children.patch7.03 KBnemchenk

Comments

nemchenk’s picture

Oh, PS, you need to "Empty cache" when changing the "Show Children" option for changes to show up.

xano’s picture

Status: Active » Closed (won't fix)

[Wrong issue]

xano’s picture

Status: Closed (won't fix) » Needs review
BayouBill’s picture

Tested, works as advertised, and answers the question I asked in http://drupal.org/node/569968.

Please commit.

Thanks for this contribution!

xano’s picture

Ah, I already wondered about that.

Good to hear that it works. We'll need a code review before this gets committed though.

robbertnl’s picture

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

nemchenk’s picture

> 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?

robbertnl’s picture

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

nemchenk’s picture

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.

robbertnl’s picture

Exactly, sorry I misunderstood what your patch does

xano’s picture

Version: 6.x-2.1 » 6.x-3.x-dev
Status: Needs review » Postponed