5

I'm struggling to set up two kinds of views for displaying multi-level taxonomy. One would list terms that are final nodes, and the other would list nodes that have children. Somehow, I can't.

I stated that what I really need is a filter criterion "Content: Has taxonomy terms (with depth=1) which have children". Does anyone know of a module/add-in that would add such a filter criterion, or perhaps knows how to define a native Views equiv (I'm still too fresh to say if that is possible).

Thanks Artur

1 Answer 1

3

in Relationships you add:
Taxonomy: Parent item

then in Filters add:
Taxonomy: Term ID, set Relationship to the above Parent, and the Operator: Is empty(NULL)

This way you only get the top level terms, because they don't have parents. Or you set it to Not empty(NOT NULL) to get the child terms.

I hope this method helps you in some way.

Your Answer

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

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