I have three content types.
- Article
- Basic Page
- Custom Page
All the content types have a field_interests field, which can have multiple values, and which is an entity reference field to the interests vocabulary.
The taxonomy terms for that vocabulary are:
I have three user roles.
I want to create a view in which:
- Athlete users can view nodes for which the value of field_interests is sports
- The Singer users can view nodes for which the value of field_interests is songs
- The Actor users can view nodes for which the value of field_interests is movies
I am assuming filter condition should be like this
( current user's role == athlete AND "field_interests"==sports ) OR
( current user's role == Singer AND "field_interests"==songs) OR
( current user's role == Actor AND "field_interests"==movies)
// if any user has multiple user roles
( All current user roles in [Singer , Actor] AND All "field_interests" in [songs , movies] )
I saw similar questions and I don't know how to use those answers to my exact purpose.