Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

OtherView Filter

Security covered Maintenance fixes only 896 sites

This module allows you to exclude content from one view based on the results of another view. It's useful for scenarios where you want to display a curated list of items and then a general listing that omits those curated items.

πŸ‡ΊπŸ‡¦

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.

Drupal 8–10 · not 11

Ask your assistant about OtherView Filter

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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
1
Tracked since
Jul 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
8.x-1.3 Stable 8–10 Jul 6, 2023