Views: how to make an OR condition between filters and contextual filters


There is a module for that (albeit a sandbox module). Download Views arguments in filters. As it is a sandbox module you will have to use git.

With this module you add your contextual filter as a global null contextual filter. Then in your normal filter's section, you refer to your contextual filter via the format %N (%1 etc). In this way you bring your contextual filter down to the normal filter section in views, and you can now apply the conditional clauses there, as well as the other filter logic.

enter image description here

enter image description here

enter image description here

Tags: Views

Similar questions

Entity Field Query OR condition,between node title and a custom field
I am executing a query for searching in the node title and a field using LIKE.How do I use the OR condition? `function hook_somefunction($keys) { $query = new EntityFieldQuery(); $query->entityCondition('entity_type', 'node', '=') ->entityCondition('bundle', 'product_display_one'); //$query->addTag('customproductstag'); $query->addMetaData('keys', ...
Can I make interaction between views relations and views arguments?
I'm running into the problem where I have to join a node and a registration. The nodes are of type 'event' and the registration is available for some, but not all of them. So basically I have a list of event nodes, and I left join the registrations on them, giving me some extra information where available. The problem is I want to list only my regi...
What is the difference between normal filter and contextual filter in views?
I am using Drupal 7.34. I have used Views module many time but I don't know difference between normal filter and contextual filter. So can you tell me What is the difference between normal filter and contextual filter in Views?
How to show nodes of a content type using contextual filters as filters?
I have a profile page for each user where it will show all nodes he has created for each content type. For instance, Autos content type will only list all autos he has authored. I'd like to be able for the user to access it using this path : http://localhost/mysite/myreports/autos and will show his autos, .../myreports/jobs will show his job postin...
Exposed form for contextual filters when using non-taxonomy filters?
I have a View with some contextual filters which works great. I also need to provide my users with some way to change the filters once they're on the page. I've tried using exposed filters but I'd rather use path arguments over query string parameters and there is the conflicting issue between exposed filters and contextual filters which the Views ...
Is it possible to combine contextual filters with regular filters?
I would like to take my standard taxonomy term view and add a "meta" category that would show up in addition to the term selected. The result should be that items in the meta category show up as well as those in the term being viwewed. I tried adding the meta category as a regular filter or an additional contextual filter, but there's no way to add...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.