Modules that embed Views into fields
Introduction
Here is a list of modules that embed views into fields.
- Viewfield
- Views Reference Field
- Views Field View
Modules
Viewfield
Features
- Field configuration options include:
- Default option
- Always use the default value: hides this field in entity editing forms and applies the configured default value for all entities in the bundle, eliminating the need to assign values individually.
If this checkbox is enabled, you must specify a default value.
- Allowed views
- Allowed display types
- Field widget: None, provides a single custom widget
- Field formatter options
Label configuration options as expected
1) Name and display label
2) View field
Title parameter: parameter to display the view title.
Always create output: create renderable output even if the view returns no results.
This option can be useful in certain specialized cases, for example, to force rendering of attachment displays even when there are no view results. Includes additional configuration for displaying an empty view title.
Views Reference Field
8.x-1.x Features
- Provides a custom field type
- Field configuration options include:
- Default parameter
- Reference method: ? Provided by the base EntityReferenceItem field type
- View display plugin resolution: configurable allowed/disallowed view plugins such as master, block, page, etc. Note: only shows existing, already created display options.
- View pre-selection options: allows limiting which views can be selected when creating content.
- Field Widget
- 1) Autocomplete views reference widget with standard config: match autocomplete: contains, text field size, and placeholder
- 2) View reference select list widget with no settings
- DX: both widgets use traits for shared functionality
- Field Formatter
- Label configuration options as expected
- Configuration options for "View display plugins to allow" which may be redundant with field config
8.x-2.x Features
TBD
Views Field View
TBD
Comparison Table
TBD
Documentation Issues
Each project should have an issue for improving this page and link to it.
Views Field View: #3128384: Add link to page with similar modules from project page.
Views Reference Field: #2890949: Compare with other view embedding modules
Viewfield: #1299222: Merge Views Reference Field and Viewfield modules
Drupal’s online documentation is © 2000-2020 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.