Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
is there any connection fo Views exposed filter and Global fitler?
Actually I have a view with exposed filters.I want the values of these exposed filters to pass as contextual filter in another view.
Is this possible?When I pass the value from the URL the view works as expected.But when I choose a value of an exposed filter of another view,which field have set as Global field,the view is not filtered.
What i don't understand is how a contextual filter will take a value,apart from the default one.
Also what is the "WIDGET TO RENDER THE GLOBAL FIELD" ?
Thanks
Comments
Comment #0.0
pinkonomy CreditAttribution: pinkonomy commentedSome more info
Comment #0.1
pinkonomy CreditAttribution: pinkonomy commentedAdded one more question
Comment #1
RdeBoerViews Global Filter does not take values from exposed filters.
The way the Views Global Filter works "under the bonnet" is that it takes a value from one of its block filter widgets, stores (remembers) it internally in the "session" and passes it on as a contextual default value to any Views on your site that need it (as per your configuration).
Exposed filters do not come into it. In fact, Views exposed filters and contextual filters don't work so well together: see http://drupal.org/project/filter_harmonizer.
For the Views global field I'd use the text field widget.
Hope this helps.
Comment #2
pinkonomy CreditAttribution: pinkonomy commentedThanks for the quick answer,really appreciate.
I will give a try the filter harmonizer module.
Comment #3
pinkonomy CreditAttribution: pinkonomy commentedHmm,filter harmonizer is not what I am looking for.
What I want is,when a user selects some values on an exposed filter,there values to be stored in session/cookies and be passed as contextual filter to another view.
Comment #4
RdeBoerYes that's what I thought you wanted. But it's not the use-case for Views Global Filter or Views Filter Harmonizer.
You need another module, yet to be developed, for that, I'm afraid.
Comment #4.0
RdeBoerMore more info