Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Mjkrakowski on
Hello,
i have taxonomy terms with child:
apple
-round
-tree
walnut
-round
-tree
in views i have "Content: Has taxonomy terms (with depth)"
in "Select terms from vocabulary games and types" i have selected everything, so the double named childs should be unique, but if i select "round" of apple i also get the walnut content.
Please advice.
Comments
You need to filter by tid,
You need to filter by tid, not by term. The to display the result as terms, you may need to create a relationship between the tid and the name - this depends on what exactly you are doing. The problem is that, as I recall, when selecting tids you no longer have the option to display the term with depth, so then the output becomes a list of terms, and you need some kind of hack to get back the tree display.
This is a problem area with views and you will probably need additional modules or a little custom code to achieve what you want. When I encountered a similar problem I concluded that there is no simple configuration within Views which can solve the issue quickly.
Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors