How to create a tree with filtered nodes from drupal taxonomy.
Posted
by sprugman
on Stack Overflow
See other posts from Stack Overflow
or by sprugman
Published on 2010-01-14T22:54:52Z
Indexed on
2010/03/20
8:01 UTC
Read the original article
Hit count: 294
drupal
I'm trying to create a menu tree in drupal like this:
- term 1
node 1
node 2
- sub-term 1
node 3
node 4
+ sub-term 2
- sub-term 3
node 5
- sub-sub-term 1
node 6
+ term 2
etc.
(Sub-term 2 and term 2 are toggled closed.)
Some requirements:
- Output this using something like JQuery Menu to get an interactive tree
- Filter the nodes by cck type
- Filter the nodes by cck field
- Only have terms with nodes or other active terms in them show up
- Mark the current node as such, and automatically open the tree to that point
Do I have to write this myself, or are there a combination of modules that can do it? I've got Advanced Taxonomy Blocks, which is pretty close, but it doesn't list the nodes.
© Stack Overflow or respective owner