Hi. I need some help.

I have taxonomy category tree like:

Term1
Term11
Term111
Term112
Term21
Term2
Term21
...

On node page (node category is term111) instead of printing:

Title: ...
Category: Term 111

I would like to print out the term and all its in-depth parents behind as list:

Title: ...
Category: Term111, Term11, Term1

What is the easiest way to acomplish this? Some module suggestion maybe which generates such expanded list?

I did it inside views with multi-leveled Taxonomy-parent-term relationships, but if there is some more simple way to acomplish this inside views it would be nice to know. And also I do not know how to acomplish this outside of views on normal node.tpl displays.

Thank you!

Comments

devad’s picture

Hierarchical Term Formatter module:
https://drupal.org/project/hierarchical_term_formatter

---------------------------------------------------
Drupal developer. Available for new projects