Contextual filter Term OR Empty I have a view using taxonomy CONTEXTUAL FILTERS.


taxonomy vocab 1 terms AND
taxonomy vocab 2 terms


Both are set to get the taxonomy id from the url, limited to a specific taxonomy vocabulary and share any of the terms.

But on taxonomy vocab 2, I would like to have an additional filter to pull content without any vocab 2 terms at all.

something along the lines of 


has taxonomy vocab 1 terms AND
has taxonomy vocab 2 terms OR
has NO taxonomy vocab 2 terms


I can do this with two separate views:

VIEW 1


has taxonomy vocab 1 terms AND
has taxonomy vocab 2 terms


VIEW 2


has taxonomy vocab 1 terms AND
has NO taxonomy vocab 2 terms


but I would like to combine the results.

Edit: if I have this set of content with terms, and the Contextual argument is term 1 I want the first and third to be shown in Views results: 

content 1 | term 1
content 2 | term 2
content 3 | no term selected
You can draw some clues from this question: Views contextual filters for NULL value You should use Computed field or some other way of introducing custom PHP into your Views (custom module is the best option). 

If you use more than one Contextual and need to have the OR operator between them you can use the Views Contextual Filters OR module. 

There is also a patch for the D7 version you can expand on: Add an "OR IS NULL" option to contextual filters. 

But since you're using two vocabularies and need to maintain the AND between the two contextuals you won't be able to use the "OR" module and you'll have to come up with a custom code solution for the second contextual that takes care of the both "there is specific term" and "there are no terms" in one contextual filter, so you can combine it with the contextual for the Vocabulary 1.