Show Nodes of ALL SUBTERMS when clicking at a TERM link

the_end - March 20, 2008 - 15:42

we have a taxonomy like:
[VOCABULARY] => [TERM1] => [SUBTERM1] , [SUBTERM2]

When you have nodes published under TERM1 , SUBTERM1 and SUBTERM2 , and you click on a "TERM1" link , you only get TERM1 nodes , and not SUBTERM1 , SUBTERM2 nodes.
Thats the default behaviour (although i strongly believe not the user-anticipated one)

I discussed the issue with some folks over at #drupal and a module development was suggested.

Does anyone have in mind any PHP Snippet or some code that has already been done for this , so we could work on and extend further? [i did a small search , in vain though]

taxonomy_term view

rernst - March 20, 2008 - 22:00

The taxonomy_term view -- which displays lists of taxonomy items -- shows by default only those nodes to a depth of zero.

If you override the taxonomy_term view, you can see lists of terms to an arbitrary depth: the 'Option' field of the Argument 'Taxonomy: Term ID' to something other than zero, you can see taxonomy terms down to that depth.

thanks! i did it by changing

the_end - March 21, 2008 - 12:07

thanks!
i did it by changing one line in taxonomy.module

taxonomy_redirect module

janusman - April 9, 2008 - 21:13

You can do this using the taxonomy_redirect module. Redirect your links to

taxonomy/term/!tid/all

instead of the default

taxonomy/term/!tid

 
 

Drupal is a registered trademark of Dries Buytaert.