Hello,

In my case, I'm using taxonomy pages to display multiple views blocks in content area. These blocks are several lists of "promoted" content, most commented content etc. which are somehow related to the taxonomy term. Anyway, the point is that it is not possible to show these views as a single page.

I would like to control all these blocks with one exposed form filter block, which is placed in a sidebar area. For example, if user chooses content type Video from the exposed filter block, all view blocks would display only videos.

Any ideas if it is possible in some way? A custom module maybe? Anything to get me started would be helpful.

Comments

ebosch1’s picture

Same problem here,

i've got a table view and a map view which i combined with panels page manager on one page but the filter only works for the table not for the map..

ebosch1’s picture

-

ebosch1’s picture

Anyone?

rausku’s picture

Status: Active » Fixed

Well, at last I managed to do it with quite an exceptional module called Views Global Filter, which passes arguments to views using either fields or other views.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

atlea’s picture

I know this is closed, but for reference I ended up solving this adding a contextual filter in views and just getting the argument from the url using default value from PHP and some simple custom code to read the paramenter value.

e.g.

if (!empty($_GET['keyword'])) {
  return $_GET['keyword'];
}
else {
  return 'all';
}
prezaeis’s picture

Hia

Would you mind helping me with this? Did you use the Views Global Filter module or just use the above code?

I have 2 views blocks on one page, one is a google map showing content filtered by taxonomy, the other is the same content as the map but in a list. i want to add an exposed filter so the user can change both views based on a taxonomy term they select from a drop down.
can you help me achieve this? i really would appreciate it, i dont understand your code above, and that Views Global Filter module seems like overkill??

thank u so much

dan2k3k4’s picture

Status: Closed (fixed) » Active

Hey @prezaeis

I also have a similar issue and want to display a "map" view for results and a "list" view of the same results but in different tabs.

http://drupal.stackexchange.com/questions/62540/show-3-different-views-d...

Still looking for a way to do this.

Basically I want to be able to easily access the results of an exposed filter to use in other blocks or to show multiple different Views displays in a tabbed page that all use the same exposed filter and all results should be synced/updated together. I use AJAX for the search method, so I can't really do anything URL based.

zmove’s picture

I exactly have the same problem than dan2k3k4, I have a google map style page with a map on the right, and a list of results on the left.

I use panels to put the 2 views content panes on the right place. Both have the exposed forms in block option activated.

I can filter the 2 views independently, each with their own exposed filters block. Now the next step is to have only one exposed filter to filter the 2 views.

I can make it works by putting the same identifier on the 2 exposed filters, the problem is that it doesn't work with ajax enabled views because the filters are not in the url as a $_GET variable.

How to make it works with ajax views ?

msankhala’s picture

Issue summary: View changes

Hi @dan2k3k4 and @zmove i am also having the similar problem with the ajax views. Were you able to solve this problem with attachment views and other suggested solution?

I am using three different display of same view. First display show thumbnail, second display show hybrid view and third one show the list view, Each display in enabled in different tab of quicktab. I am using panel to show that quicktab as panel pane. Each view display in quicktab using ajax to submit the exposed filter value. I want to control all three display of views with one exposed filter visible on all three display. If user select some value in exposed filter on first display then switch to the another tab then exposed filter on this display should have the same value user selected in first view display.

I had a look question asked by @dan2k3k4 here http://drupal.stackexchange.com/questions/62540/show-3-different-views-d...
Here i didn't find any answer as accepted. @dan2k3k4 Can you please suggest which method worked for you?

Thanks in Advance.

dorkmaneuver’s picture

subscribing...

rgnyldz’s picture

Same here, want map + list view with one global filter.

Maby this should be a feature request for IP Geolocation Views & Maps module

broon’s picture

Here is a simple guide to my solution in order to have both map and list being controlled by the same filter.

Basic setup of the map

  • Create a view of type page and of format map (I am using Leaflet).
  • Add all the exposed filters and fields you need.
  • For a nicer presentation, I am using Ajax.
  • Also in the advanced section choose the option to expose filters in block.
  • This display is set to show all items (since pagination on a map doesn't make sense).

Add a table of results

  • First, add a new display also of type page.
  • For most of the changes below, always make sure to override the default!
  • Change the format to Table (or whatever else you need).
  • Change the pagination settings to whatever you need.
  • Change the advanced option for exposing filters in block to "No".

The critical yet so simple step to combine both

Now, to have both map and list on one page, simply add a Global: View (Views field view) field to the header section of the table display. Here it is very important to override default, otherwise you'll probably experience fatal out of memory and/or exceeded execution time errors in PHP since the header field would be applied to all displays. Within the settings for the views field, choose the view you just created and select the map page display.

Save the view and voilà, calling the path set in the table display, you should now have your table of results (even paginated), the filters on top of that and even above the map. Applying any filter updates both the list and the map.

mustanggb’s picture

Status: Active » Fixed

Answered by Paul Broon.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

msankhala’s picture

Thanks @Paul Broon for step by step answer. Is there any way to use single exposed filter to filter multiple views content pane? Lets consider a scenario i do have multiple views content pane display of same view. Those views pane are enable inside quick tab. I want to have a single exposed filter block on top of those tabs and when i apply filter in that it should update all the views pane displayed under different tabs.

Example: Here i do have single exposed filter block on top. Then i do have 3 tabs called Home, Domestic and International. Each tab has a views content pane. When i apply filter in exposed filter block it will update views content panes in all 3 tabs.

| Exposed filter block|

|Home| Domestic | International |      
|View content pane1  | View content pane2 | View content pane3 |