Drupal is a registered trademark of Dries Buytaert

Provides a block type which renders views display exposed filters separately from the view.
It's like Views Block Exposed Filter Blocks module but works for all types of view display plugins (for example for eva view displays which was what I needed) and solves the problem "the other way around".
With this module you select the view and display with the exposed filters to render within the block configuration, not within the view.

If you only need exposed filters in blocks for a views block display plugin, I suggest to use https://www.drupal.org/project/views_block_filter_block or simply try out which of those two fits best.

Based on the implementations like:
https://blog.werk21.de/en/2017/03/08/programmatically-render-exposed-fil...
or
https://drupal.stackexchange.com/questions/236576/render-exposed-filter-...
Thanks to the authors!

Installation & use

  1. Enable the module
  2. Go to block layout (admin/structure/block)
  3. Add a block of type views_exposed_filter_blocks
  4. Select the view & display which holds the exposed filters
  5. Place the block into the region where to display the exposed filters and eventually configure display rules / paths.
  6. Disable AJAX in the view you'd like to use (with ajax is untested)
  7. Place block and result view on the same page so that the filter arguments can be handled by the result view

Additional note:
For some cases it seems that you have to use the "master" view display as result display. You may want to hide the masters exposed filters from output by overwriting

views-view--your-view-name.html.twig

and replacing
{{ exposed }}
with

{# Hide exposed filters. They are shown in a seperate block using views_exposed_filter_blocks: #}
  {#{ exposed }#}
  • Remember to disable AJAX for the selected views, otherwise this currently won't work
  • As it seems this module doesn't work anymore combined with Better exposed filters because BEF requires AJAX to be enabled in some cases!

Alternative modules

Drupal 7

This module will never have a Drupal 7 release. Simply use the great https://www.drupal.org/project/views_block_filter_block

Future plans

If it makes sense we should perhaps add the option to set a target URL for the form submit to make it possible to place the exposed filter block on a page different from the results.

Supporting this module

Support DROWL's ♥ FOSS work on this module on OpenCollective!

Drupal and this module are FOSS. However, it takes dedicated people to develop and maintain. And they need YOU to give back!

We're committed to building and maintaining Drupal modules that benefit the entire community.

Supporting us on OpenCollective helps us continue to improve, innovate and contribute to Drupal's future. Every pledge makes a difference!

If this module has helped you, we would be very grateful for your donation to support its further development and maintenance.

Support our FOSS development ♥️

You can also speed up the development of features or bugfixes you'd love to see, by sponsoring and giving back!

Sponsor a feature or bugfix 🚀

Let's make Drupal even better, together!

Development proudly sponsored by German Drupal Friends & Companies:

webks: websolutions kept simple (https://www.webks.de)
and
DROWL: Drupalbasierte Lösungen aus Ostwestfalen-Lippe (OWL), Germany (https://www.drowl.de)

Activity

Total releases
2
First release
Dec 2024
Latest release
9 months ago
Release cadence
160 days
Stability
100% stable

Releases

Version Type Release date
8.x-1.5 Stable May 19, 2025
8.x-1.4 Stable Dec 10, 2024