Skip to content

Filter views in Backdrop CMS using the results of another view.

License

Notifications You must be signed in to change notification settings

backdrop-contrib/other_view_filter

Repository files navigation

Other View Filter

Other View Filter enables you to filter the contents of one view by the contents of another view. You can either filter by items that exist in the other view or filter by items that do not exist in the other view.

You may wish to include two view displays on on one page and filter out items in one view that are included in the other view. Or it may be that you need to filter a view in a way that cannot be done in a single display.

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. Using more than 1 view for filtering will strongly decrease your site performance. To minimize performance decreasing use simple and cached views.

Usage

  1. In the view from which you wish exclude or include items, add filter "Other view result".
  2. In the filter criterion screen choose the "View: display" combination you want to filter by.
  3. Select the Operator to:
    • include items from the other view (Is one of);
    • exclude items from the other view (Is not one of);
  4. Apply to this display or to all displays.
  5. Save the view.

Requirements

This module requires that the following modules are also enabled:

  • Views (Core - Enabled by default)

Installation

Issues

Bugs and Feature Requests should be reported in the Issue Queue: https://github.com/backdrop-contrib/other_view_filter/issues.

Current Maintainers

Credits

License

This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.