I am using the very helpful feature of having the exposed filters appear in a block. Exposed filter values are reliably being put into the URL and the page is reloaded, and the views content is updated to reflect the particular views values being filtered on.
Is there a general way to display the particular values being filtered on. For my particular application, I'm keen to display the filter values in the header area of the view.
e.g. If I've filtered on a particularly language for the nodes in this view, I'd like to include something like:
Language: English
in immutable text at the top of the view to reaffirm that the displayed list only includes English nodes.
Any pointers to snippets or features in this regard are most appreciated.
Comments
Comment #1
nally commentedComment #2
remco75 commentedAny progress on this one yet? i'm intrested to! seems a very nice feature
Comment #3
remco75 commentedFound it: expose form in block = yes
Comment #4
dawehnerAh nice, so this is fixed
Comment #5
nally commentedIn fact, I don't think it's closed, unless I'm missing something very obvious.
The distinction here is that I'm looking for a way to display the ACTIVE filters. i.e.
"You've searched on Tags = drupalcon" kind of info. The filters are in the block (which I enabled as above) but I'd like the filters to show up on the page itself, or on the block with the filters.
Comment #6
esmerel commentedComment #7
twistedindustries commentedI found this in over here, http://drupal.org/node/658566
Can't get it to work for the life of me.
Comment #8
gotcha41 commentedI have exact the same request. A text saying:
"The view is now being filtered on X, Y and Z"
Comment #9
gotcha41 commentedAfter surfing the net, I found and edited a php code to extract variables from the url (as the active filter is as well a part of the url):
(my variable names are "Africa" and "Latin America")
the code has nothing to do with drupal, as it is pure php programming (=getting information from an url), but solves the problem here very well.
the code has two parts:
- first I set the text "Filter(s)" when there is a filter active
- then I let the right filter appear as text
this code I put in the header of the view
Is there an option to automatically display all variable names (active filters) that have value 0 or 1 ? Without having to predefine the filter names in the code?
Or perhaps a solution that is based on the Drupal system, and not just php code?
Comment #10
iamjon commentedI'm marking this as a duplicate of #658566: Use data from exposed filter in title or header