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.
My configuration (overview)
Vocabulary:
Parent 1
-- Child 1
-- Child 2
Parent 2
-- Child 3
-- Child 4
Nodes don't have parent terms.
View
Relationship: Taxonomy parent
Fields: Taxonomy term (parent from relationship), Nid, Aggregate
Filters: Node type, Vocabulary (parent from relationship)
Aggregate:
Group on: Taxonomy term (parent from relationship)
Aggregate: Nid
Sort: Taxonomy term (parent from relationship)
Result:
Term: Parent 1
Nid count: 14
Term: Parent 1
Nid count: 20
Term: Parent 2
Nid count: 18
Term: Parent 2
Nid count: 31
So, there is a separate entry for each child.
Is it possible to achieve something like:
Term: Parent 1
Nid count: 34
Term: Parent 2
Nid count: 49
Comments
Comment #1
burlap CreditAttribution: burlap commentedcorrected a typo
Comment #2
mgabud CreditAttribution: mgabud commentedHi,
did you manage to do this with views or did you have to use custom code?
I'm trying to do the same thing and just can't find the solution...