I would like to make a page with 2 Views blocks. The views show the same content type, but in a different format.

Block A contains an OpenLayers map.

Block B contains a listing result.

I want to filter both Views based on taxonomy, but with one exposed filter block.

I've made one Better Exposed Filter for block A, but I don't know how to control both blocks with one exposed filter.

Can anyone help?


You want to create an attachment view display and add it to your main display. For example, if you currently have the OpenMaps display working, create a listing display as an attachment and attach it to the OpenMaps display. Make sure you set "Inherit exposed filters" to "yes" to ensure both displays are using the same set of filters. In views 3 you can find this settings in the Attachment display settings: screenshot of attachment settings

  • I have no "Inherit exposed filters" option, only "Inherit contextual filters" one Jun 3 '13 at 7:47
  • You saved me from my misery. The best part is that it's been 3 years since you wrote this! Can't thank you enough.
    – user219492
    May 15 '15 at 9:36

My solution is just to add a hook mymodule_form_alter.

  • 4
    Can you give a brief overview of what you did with the form alter?
    – mpdonadio
    Jan 25 '13 at 12:12
  • -1 your accepted answer does not state the code that you wrote for mymodule_form_alter, only that you used this hook - this is not enough to for an answer to solve the problem. But +1 for your original question (other folks will want to do this) and +1 on MPD's comment asking for the same. Jul 15 '13 at 14:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.