Closed (fixed)
Project:
Views (for Drupal 7)
Version:
5.x-1.6
Component:
exposed filters
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Mar 2009 at 04:39 UTC
Updated:
13 Mar 2010 at 00:39 UTC
Is there any way to combine filters in views? I have a set of three exposed filters, allowing users to filter the output of a view. This means that the view has three search boxes, but I would like it to only have one that searches all three existing filters (as in: search term is in filter 1, or filter 2 or filter 3). Any suggestions on how to to this?
Comments
Comment #1
dawehneryou could try to use hook_views_pre_query($view) to alter the view object and change the not exposed filters
Therefore you have to add the three filters and just expose one of them.
Then it is possible to let the filters be connected with AND
Comment #2
scarer commentedwill the other filters still be viewable if they're not exposed? i am also very interested in this
Comment #3
clivesj commentedContrib module Views_OR
http://drupal.org/project/views_or
Comment #4
esmerel commentedSuggestion made for fix.