Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Usage Milestone: Time Field for Drupal 8+ Module time_field crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

This module allows one Drupal view to filter its results based on the output of another view. It can be used to create dynamic allow lists or deny lists, effectively filtering content based on complex criteria defined in a separate "source" view without needing direct user interaction.

Views Field View Exposed Filter extends Drupal Views by providing advanced filtering capabilities that allow one view to be filtered by the results of another view. It acts as a bridge between complex datasets, allowing you to use a "Child View" to generate a list of allowed (or denied) IDs that dynamically filter a "Parent View."

This is particularly useful for complex site architectures where the relationship between content is defined by dynamic Views logic (e.g., "Latest News," "Most Popular Products," "User's Bookmarked Items") rather than simple Entity Reference fields.

Key Features

  • Exposed Source Display: Introduces a dedicated Views Display plugin optimised for returning raw data (IDs) for logic processing, while still rendering a helpful table preview in the UI for debugging.
  • Exposed Source Filter: A robust filter plugin that integrates seamlessly into the "Filter Criteria" section of any View.
  • In / Not In Logic: Supports both inclusion ("Is one of") and exclusion ("Is not one of") logic, effectively allowing you to create Allow Lists or Deny Lists based on another view's results.
  • Argument Support: Capable of passing arguments (context) to the Source View directly from the filter configuration.
  • Admin-Configured Logic: Unlike standard exposed filters that require user input, this filter runs silently in the background based on site-builder configuration, enforcing strict logic without cluttering the user interface.

How to Use

1. Create the Source View

  1. Create a new View (e.g., "My Filter Logic") or edit an existing one.
  2. Add a new Display of type "Exposed Source" (found in the + Add menu).
  3. Add the field you want to filter by (e.g., Content: ID) to the Fields section.
  4. Under Format > Settings, select that field as the "Output Field".
  5. Add any filters or sort criteria to define your logic (e.g., "Content: Published = Yes", "Taxonomy Term = specific_term").
  6. Save the View.

2. Configure the Parent View

  1. Edit the main View you want to filter.
  2. In the Filter Criteria section, click Add.
  3. Search for your ID field. Instead of the standard filter, select the option labeled "(Exposed Source Filter)" (e.g., Content: ID (Exposed Source Filter)).
  4. Configure the filter settings:
    • Operator: Choose "Is one of" (to include items found in the source) or "Is not one of" (to exclude them).
    • Source View: Select the view you created in Step 1.
    • Source Display: Select the "Exposed Source" display.
  5. Click Apply and Save the View.

Requirements

  • Drupal 10 or 11
  • Views (Core)

Similar Projects

  • Views Field View: Embeds a view result as a field inside another view. This module differs by using the view result as a filter query.
  • Entity Reference Filter: Filters based on strict Entity Reference fields. This module differs by allowing any arbitrary View logic to define the filter list.

Depends on

Dependencies of the latest stable release

  • views Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Jan 2026
Latest release
7 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
1.0.0 Stable 10–11 Jan 4, 2026
1.0.x-dev Dev 10–11 Jan 4, 2026