Display Child Terms

fcmisc - February 21, 2007 - 01:47

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.

In taxonomy.module there is

As If - February 21, 2007 - 02:08

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

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

You could try taxonomy_context module

nedjo - February 21, 2007 - 06:14

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

Hi, I am looking for the

giorgio79 - May 15, 2008 - 16:39

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?

Taxonomy_context

As If - May 16, 2008 - 03:30

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

Thanks As If!

giorgio79 - May 16, 2008 - 07:34

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 ;)

 
 

Drupal is a registered trademark of Dries Buytaert.