I have a taxonomy vocabulary general in which I have a reference field to user roles allowed_roles.

I have two taxonomy terms. A and B where A is the parent of B.

Now I selected test_role in the A taxonomy term in allowed roles.

in the views I have added a relationship on Taxonomy term referenced from general.

In the contextual filter, I have added the allowed_roles with the above relationship and provided the test_role as value.

Now when I logged in with the user with role test_role, I can only see those content which are tagged with A. Which is default behaviour of the views and correct.

But I want that I should see all content of A and also those content which are tagged with the children of A.

is it possible with views? or I have to write a custom views relationship? Any idea?

Your Answer

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

Browse other questions tagged or ask your own question.