I have a Taxonomy which looks like this:


I have created a view to display all terms under a specified Parent by setting a context tid . Here you can find the exported view: http://pastebin.com/us7KnKsD

The Problem is that the view only shows the terms which have sub-children.

How can I also display the terms which doesn't have sub-children? Is it possible with views? In php I would just create some recursive function...

  • Isn't that that you set Require this relationship in the relationship setup dialog?
    – Artur
    May 8 '12 at 9:44
  • Changing this setting have no effect concerning to the problem
    – chriszero
    May 8 '12 at 10:25

Start your query from the Taxonomy table. Meaning select Taxonomy as your base table when creating your view. Then establish a relationship to your content from there. This will ensure your results contain all taxonomy names and then their subsequent children.


You can use the module Views tree

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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