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 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.

Activity

Total releases
2
First release
Jan 2026
Latest release
6 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Slowing

Releases

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