Posted by eminencehealthcare on December 17, 2012 at 10:11pm
I have a views list that has a filter "has taxonomy term" A
I have another filter "has taxonomy term" B
I want to show all items tagged with EITHER of these terms.
Right now how it works is it only shows content that is tagged with A and B.
I want items to display that are EITHER A or B.
Comments
Are 'A' and 'B' in the same
Are 'A' and 'B' in the same vocabulary or different vocabularies. And which version of Drupal are you using?
Drupal 7.16
Thanks for your response,
Drupal 7.16
A and B are in different vocabularies.
-Eminence Healthcare
Next to "Filter criteria",
Next to "Filter criteria", click the down arrow next to "add', select "add/or, rearrange".
Click "Create new filter group" (you can skip this step if you have only the two terms as filters).
Set the operator to "Or" for the new group
If you added a new group, drag the two term filters to the new group.
Save
That does the trick.
Thank you for that it, works great.
Now I have a problem when adding multiple taxonomy terms of the same type. (content: has taxonomy term = Pending)
It will work in either one of the two groups but not both of them.
Can I only have one taxonomy term= pending even if they are in separate filter groups?
-Eminence Healthcare
Not sure I understand what is
Not sure I understand what is your goal? For example
would correspond to your original question with the addition the node would need to be published.
I want both A and B to also
I want both A and B to also have to have "pending" taxonomy term.
It seems like it should work like this:
Group:1
Content: Has taxonomy term (= A) AND
Content: Has taxonomy term (= Pending)
OR
Group:2
Content: Has taxonomy term (= B) AND
Content: Has taxonomy term (= Pending)
But when I add Pending to both of the field groups it doesn't work.
Only if I add pending to one of the field groups does it filter like it should.
-Eminence Healthcare
I would write that
I would write that as
Group:1
Content: Has taxonomy term (= Pending)
AND
Group:2
Content: Has taxonomy term (= A) OR
Content: Has taxonomy term (= B)
Yaay
That did it nevets,
Thank you so much for your help again. It all makes so much sense now.
-Eminence Healthcare
Could you use contextual
Could you use contextual filters?
Perhaps
Thanks for the reply,
Perhaps I could use contextual filters but I do not seem to understand it well enough to accomplish what I am aiming for.
-Eminence Healthcare
Contextual Filters
You can create content, and specify the URL it has, or do some overriding with taxonomy terms to be automatic. When you create a view, contextual filters can grab the current page's (the browser is on) URL. That URL will be the argument. You can specify actions - what to display - based on that argument.