This module adds a field that allows you to select and display a Drupal View directly within an entity. You can configure arguments for the View using literal values or tokens, and administrators can restrict available Views and set default configurations.
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.
Ask your assistant about Viewfield
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
1 tracked project depends on this one
- Viewfield Argument Helper 154 sites
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 8.x-3.0-beta11 | Pre-release | 10–11 | Nov 26, 2024 | ||
| 8.x-3.0-beta10 | Pre-release | 9–11 | Jul 9, 2024 | ||
| 8.x-3.0-beta9 | Pre-release | 9–10 | Jun 6, 2024 | ||
| 8.x-3.0-beta8 | Pre-release | 9–10 | May 8, 2024 | ||
| 8.x-3.0-beta7 | Pre-release | 9–10 | Feb 7, 2023 |