I'm trying to create a view to desplay contents based on shared taxonomy terms.
More concretely, I have two content types:
Offers (with field "Category")
Needs (with field "Category")
This contents share the same vocabulary "Category". Indeed, the "Category" fields of the content types "Offers" and "Needs" are refered to the same vacabulary (taxonomy) with terms:
electronic
chemistry
mathematics
science
Each user can define their offers and needs through 2 differents forms.
To put it simply, let's take the case of 3 users who created their offers and needs using this forms. Here is a table of a concrete example:
==> Case 1: current user (logged in user) = user 1
Imagine that I am user 1 (current user). The view page will have to desplay to me a list of the contents "Needs" of other users (user 2, user 3) and that have the peculiarity of having a "Category" field equivalent to the "Category" field of my contents "Offers".
In other words:
1) My content "Offers" are "Offer 1" and "Offer 2" with fields category ("electronic","science")
2) The contents "Needs" of other users are "Need 2", "Need 3","Need 4","Need 5" and "Need 6"
3) Comparing fields category between my contents "Offers" and contents "Needs" of other users:
Field Category of "Need 2" = chemistry. The value of this field is different from the values ("electronic","science"), that are the values category of my offers ==> The view will not display the content "Need 2"
Field Category of "Need 3" = electronic. The value of this field is equivalent to the value category of my Offer 1 ==> The view will display the content "Need 3"
Field Category of "Need 4" = mathematics. The value of this field is different from the values ("electronic","science"), that are the values category of my offers ==> The view will not display the content "Need 4"
Field Category of "Need 5" = science. The value of this field is equivalent to the value category of my Offer 2 ==> The view will display the content "Need 5"
Field Category of "Need 6" = electronic. The value of this field is equivalent to the value category of my Offer 1 ==> The view will display the content "Need 6"
4) It means that the view page should display this list of Needs:
Need 3 (electronic)
Need 5 (science)
Need 6 (electronic)
In other words, Offer 1 and Offer 2 (that are my Offers) match with Need 3, Need 5 and Need 6 (that are needs of the other users covered by my Offers). And this because they have the same categories "electronic" and "science"
==> Case 2: current user = user 2
Using the same logic, if the current user is user 2, the view page is going to desplay this list of Needs:
- Need 5
==> Case 3: current user = user 3
And for the user 3, this list of Needs:
Need 1
Need 2
Need 4
Question : How can I create this view with view UI ? Any other suggestion is welcome.