🇺🇦 |
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
- Install the module under
sites/all/modules/contriborsites/all/modules - Enable the module
- In the view from which you wish exclude items, add filter "Other view result"
- In filter settings choose "view & display" whose output you want to exclude from the current view
- 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
- Install the module under
sites/all/modules/contriborsites/all/modules - 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.
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.Maintenance fixes only
Considered feature-complete by its maintainers.1,319 sites report using this module
- Created by antonnavi on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Drupal 10 support was added
Development version: 8.x-1.x-dev updated 12 Nov 2024 at 13:16 UTC
