1

I want to Display child terms when a parent Term is clicked with Views in Drupal 7. Example

     Parent1
          .child11
          .child12

      Parent2
          .child21
          .child22
          .child23

So when Parent1 page is Visited, i will display the content of parent1 but with a block showing

          .child11 
          .child12

Any insight in Achieving this will be Appreciated. Thank you.

2
  • are you using D7 or D6?
    – Bala
    Apr 21, 2013 at 13:57
  • Drupal 7, i have edited the Question.
    – mrcniceguy
    Apr 21, 2013 at 14:04

2 Answers 2

1

Try the Views tree module. It is great for taxonomy trees.

This module provides a tree-based style plugin for Views. It is equivalent to the tree-based style template from Views 1.

It is based off of the list style. Although it generates a nested view, there is still only a single query run for the view making it quite performant.

There is also a patch for adding collapsible support but I'm not sure how complete it is. See http://drupal.org/node/1538414

0

Download and install the Taxonomy menu module, it will exactly match your requirement. More details from the module's project page:

  • Custom Menu per vocabulary
  • Uses the default taxonomy term path or custom paths
  • Integrate with Views
  • Integrate with Pathauto: use URL/path aliases
  • Does not interfere with other menu modules

See the demo http://taxonomymenu.davidstoline.com/ (click the terms and you can see the term highlighted in the block)

Hope it will help you!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.