On this page
Introduction
The Views Field View module is a very handy module that allows you to embed a view as a field in a view.
The most basic usage is to select from the list of fields to add to your view the newly available option: Global:View and then chose the view and display you want to embed in your field.
Once a new field handler is made available, this can also be used in area (header/footer/empty) handlers as well as rows.
This view handler can accept arguments from fields of the parent view using tokens and pass them into the child view for each row. Raw or rendered token values can be used, as well as static values.
Examples
Here are a few examples of use cases for the module, as well as how to configure it correctly, to help you get started.
- Event logger: How to show most recent log entry
- How to list users, and their most recent content
- Drupal Answers: How output JSON for multiple "Rest export" views?
- Drupal Answers: How do I deliver a nested JSON array for content reference with export view display?
- Drupal Answers: How do I set up this view?
Performance considerations
Please note that using this module can impact the performance of your site, if the views being rendered are very resource-consuming. It's highly recommended to use this module in conjunction with other modules that provide views caching.
Help improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion