Suppose I'm browsing node (n1), that belongs in term (t1).

Suppose (t12), (t13) are child terms of term (t1).

How do I get drupal to list the child terms of (t1)??? [ i.e. (t12), (t13) ] I'd like these child terms to be listed in a block somewhere. I could probably code this, but would prefer not to reinvent the wheel, seeing as there's probably an easy way to do this already.

Comments

As If’s picture

In taxonomy.module there is a function called taxonomy_get_children().

-------------------------------------------
Interactive Worlds and Immersive Obsessions
http://www.asifproductions.com

-------------------------------------------
Interactive Worlds and Immersive Obsessions
http://www.asifproductions.com

nedjo’s picture

which includes a contextual taxonomy block. Not exactly what you're looking for, but it might do or at least provide some hints.

giorgio79’s picture

Hi,

I am looking for the exact same thing.

Show child TERMS not nodes on a parent page, in a block, kind of like a tag cloud.

Any other ideas?

As If’s picture

Taxonomy_context can help you do this. By default it can create pages like /taxonomy/vocabulary/2 (which lists all child terms of vocab #2). If you are comfortable writing PHP blocks, you can call functions straight out of that module for some very useful stuff. It's a goldmine in there ;-)

You also might want to check out NancyW's site, she's all over taxonomy-related issues: http://nanwich.info/drupal_collection/my_modules

-------------------------------------------
Interactive Worlds and Immersive Obsessions
http://www.asifproductions.com

-------------------------------------------
Interactive Worlds and Immersive Obsessions
http://www.asifproductions.com

giorgio79’s picture

Thanks As If!

I will be checking it out, although it would be better if I could display child terms (only 1 level deep) on the actual taxonomy pages (pathautoed)

PS: WOW, it does :)) It shows child terms on cat pages, fantastic ;)