Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Views provides us with abundance of filters; however, Views doesn't provide a list of nodes as a filter for this reason. This module solves that issue by, well, using Views!
Views Node Filter obtains the result of a view's display to be used as a filter in another display (although you can still end up with the above issue if you create a view for a filter that returns thousands of results).
How to create a filter
Here's how to create a page where you can use an exposed node filter to filter the content (this is written with an assumption that the readers know how to use Views):
Install and enable Views and Views Node Filter.
First, create a view display that returns a list of node IDs. The result of this display will be used as a filter in another view / display.
In 'Fields', add a 'nid' field (you can add other fields, but they will be ignored). Save the view.
Create another view (or a display) for the actual page view. Create a page display and specify the path.
In 'Filters', select 'Views Node Filter' and tick 'nid'. In the configuration box that opens below (if you have JavaScript enabled), select the view and display created in step #2.