🇺🇦

This module is maintained by Ukrainian developers.
Please consider supporting Ukraine in a fight for their freedom and safety of Europe.

The filter provided by this module exclude nodes (or another content) from a view, by excluding the results of one view from another one. This allows you to filter a view results by another view.

Frequently two views, or two displays of one view, occur on the page together. One common example is a listing of content with a few curated items selected via more specific criteria. It's simple enough to create two displays and show the curated one above the general listing. This presents a problem: content that appears in the curated list needs to somehow be excluded from the general listing.

Basic usage

  1. Install the module under sites/all/modules/contrib or sites/all/modules
  2. Enable the module
  3. In the view from which you wish exclude items, add filter "Other view result"
  4. In filter settings choose "view & display" whose output you want to exclude from the current view
  5. Save the view.

Hint

To minimize the cost to performance of running multiple views queries, the number of instances of this filter on the same display should be kept to a minimum and caching should be employed liberally. Views Content cache and Cache Actions are helpful for this.

Using more than 1 view for filtering will strongly decrease your site performance. To minimize performance decreasing use simple and cached views.

Requirements

Installation

  1. Install the module under sites/all/modules/contrib or sites/all/modules
  2. Enable the module

Similar modules

  • Views Exclude Previous

    Attempts to determine what content has already been loaded on thep age, whether by views or by some other method, and exclude that from the current view

  • Views Pipes (sandbox)

    Does some fancy stuff with contextual filters and configuration settings

  • Views Field View

    Similar concept to this, but using a field handler rather than filter handler, allowing you to embed a view as a field in a view.

  • Views Filter View (sandbox)

    Very similar.

Supporting organizations: 

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • chart icon1,319 sites report using this module
  • Created by antonnavi on , updated
  • shieldStable releases for this project are covered by the security advisory policy.
    Look for the shield icon below.

Releases