Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

views_filters_populate

4,416 sites Security covered
View on drupal.org

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
Release cadence
Stability
100% stable

Releases

Version Type Release date
2.2.0 Stable Mar 12, 2025