Viewfield provides a field that holds a reference to a View and renders it whenever the entity containing the field is displayed.
Features
- Author chooses one or more views and displays from a list.
- View arguments (contextual filters) may be supplied literally or through tokens.
- Administrators may restrict which views and displays may be assigned.
- Administrators may supply default values that will be used for all entities in a bundle, making it unnecessary to supply field values for each piece of content.
Drupal 7.x-3.x
This new branch will include new features and updates as of August 2019. Before upgrading from 7.x-2.x, make sure to do thorough testing on your site and understand the new features being introduced and how that will impact your site. This is meant to provide a release for those who are using these features actively now via patching while maintaining a stable 7.x-2.x branch for existing Drupal 7 sites that don't want to "rock the boat".
- #2697337: Increase arguments #maxlength to match db column max length
- #2984973: Add a field formatter to show only title, display name, arguments
- #2248927: Allow setting of allowed view displays
- #477244: View field not working correctly with empty views.
- #2650884: Tokens loading problem for other entities
- #2177873: Missing taxonomy term tokens
- #1658126: Arguments not always available during node preview, which may lead to unhandled errors.
- #2576163: Widget is not hidden when adding entity via Inline Entity Form
Drupal 7.x-2.x
This will remain the recommended release for Drupal 7 for the foreseeable future. Only bug and security fixes will be added to this branch in order to provide a stable platform for the thousands of Drupal 7 sites still running.
See the handbook page for more information.
Requirements
Demo
Evaluate this project online using simplytest.me.
Project information
- Module categories: Content Editing Experience, Content Display, Site Structure
- 28,604 sites report using this module
- Created by mfredrickson on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
D10 compatibility
Development version: 8.x-3.x-dev updated 7 Feb 2023 at 16:44 UTC
Development version: 7.x-3.x-dev updated 23 Aug 2019 at 20:03 UTC
Development version: 7.x-2.x-dev updated 12 Sep 2019 at 18:28 UTC