Views Term Relationship Depth
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Component created
Component changed
Component body
A Views handler allowing you to create relationships between taxonomy terms and entities, based on the terms' hierarchical descendants.
For example, given a vocabulary 'Animal' containing terms such as Vertebrate, Mammal, Cat, Dog, etc, and a Person entity with a term-reference field 'Pet', you could create a view listing all people with pets that are Mammals (including descendants such as Cats and Dogs) using the existing 'has taxonomy term (with depth)' contextual filter.
But there's currently no way (afaict) to follow this relationship in other directions or as a linking step an a series of relationships. This project intends to fill that gap.
For example, this would allow you to list how many people had pets of each Animal term, taking the hierarchy into account. Or to create a view relating petfood to animal to owner.
The SQL produced by this handler is a union of joins, up to a maximum depth specified in the view options.
