Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module allows a single exposed filter to populate and search across multiple other non-exposed filters. It enables flexible searching on various fields, including those in aggregated views, by sending the exposed filter's value to multiple targeted filters.

This module "populates" other filters on the view with the provided value, allowing to use one exposed filter to search several others.

It's similar to the Global: Combine fields filter available on Drupal 8 and on Views 7.x-3.4+ but with the following differences:

  • Global: Combine fields can only be used on displays with fields, this one doesn't have that limitation.
  • Global: Combine fields concatenates the fields on the query and then filters by it, this could break aggregation and adds duplication issues. It also may have a performance hit. This module "populates" other filters, so it just works as if the filter value was provided.
  • Because you don't need the field to be added, it helps filtering on aggregated (GROUP BY) views.
  • Each field can have its own operator.
  • OR/AND can be combined as needed

It only populates non exposed filters that expects a string text field, so those filters that take an array (options) or special types won't work.

How to use this module

Let's assume that you have "First Name", "Second Name" and "Last name" on some entity and you'd like to use one expose filter to search on any of those fields.

1. Download and enable this module.

2. Create an OR group of filters for each of the fields that you want to search on; make sure you don't expose those filters and that you choose the appropriate operator that will accompany the value for each filter.

3. Add another filter found on the 'Global' section called 'Populate filters'.

4. Expose it and check the filters which you have previously added that you wish this exposed filter to populate, on our example they are first name, second name and last name. Remember that only supported and non exposed filters will be available for selection.

That should be it.

As a reference, this module was born out of ideas, suggestions and needs discussed in #451000: Apply One Exposed Filter to Multiple Fields.

Activity

Total releases
1
First release
Mar 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Release date
2.2.0 Stable Mar 12, 2025