Drupal is a registered trademark of Dries Buytaert

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.

Activity

Total releases
2
First release
Jan 2026
Latest release
2 months ago
Release cadence
0 days
Stability
50% stable

Releases

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