Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Experimental project
This is a sandbox project, which contains experimental code for developer use only.
With views pipes, values output by a view (the output view) can be used as input to a second view (the input view).
A case for using the module might be when a site developer needs to exclude the results of one view from another view.
For example, to create a view showing all users who have not authored an article, (which is not easy, dare it be said impossible, using Views alone) do the following:
- Add a view that displays all users - this will be the input view.
- In the contextual filter settings of this view add a uid filter. Ensure that it can accept multiple values and that they are excluded - these settings can be found by expanding the collapsible fieldset labelled 'More' at the bottom of the contextual filter settings.
- Add another view displaying all users who are authors of articles. Important: it must be a table. This is the output view.
- Add a uid field to this view. This provides the output.
- In the Views Pipes overview page add a new Views Pipe.
- Give it a name, ensure it is enabled, use the select boxs to drill down to the output field and the input argument from the two views and then save.
- Display the input view.
Users who have created articles should no longer be present.
Project information
- Created by knoboid on , updated