This module provides a new field formatter that allows you to display the output of a chosen View instead of the default field value. It can pass context from the field and entity to the View, enabling you to use the power of Views to format field content.
/!\ There is a complete new version "8.x-2.x" that needs some feedback from users /!\
Could you please test it and give me some feedback on the issue queue or on Github ?
Version 8.x-1.x
Provide a new field formatter: 'View' for each field types and allows you to select a View and to use its result instead of the original field value.
By default, the module sends 4 arguments to the selected View.
Those arguments in order are:
- Field value: The value of the field.
- Entity ID: The ID of the entity the field belongs to.
- Delta: If the field has multiple value, the delta. If not, zero.
- Revision ID: The revision ID of the entity the field belongs to.
You have options for a field having multiple cardinalities, just like in the screenshot.
This module is handy when you want to replace the content of a field with another and use the power of Views.
Version 8.x-2.x
Under heavy development.
Could you please test it and give me some feedback on the issue queue or on Github ?
New features:
- You can have as many arguments as you want, strings or token, there is no limit
- Docker backend for development and tests
- Tested with Behat