Overview
Dynamic Entity Reference provides a field type/widget/formatter combination for Drupal 8 that allows an entity-reference field to reference more than one entity type.
Features
Create a single field to hold references to Users and Nodes, Or Terms and Nodes, or all three.
8.x-1.x or 3.x with D10 support:
This version only supports content entities with integer IDs as referenceable entities. It doesn't allow content entities with string IDs as referenceable entities.
8.x-2.x or 4.x with D10 support:
This version allows all content entities as referenceable entities. This version also allows all config entities as referenceable entities but it is only configurable programmatically. The content and config entities can be referenced in the same field as well.
DER Extra
Use DER Extra to shows multi-value DER field autoccomplete widget built using chosen. It only works with DER>1.4
OR >2.0-alpha6
. For all other versions please use the patch from #2907597: Make DERI::getSettableOptions more usable.
Note:
Dynamic Entity Reference 8.x-2.x fields with numeric IDs aren't supported by all hosting platforms, specifically Acquia. #2930423: MySQL triggers aren't supported on all hosting platforms
Version
Version | >=1.11 | >=2.0-alpha14 | >=1.16 | >=2.0-alpha19 | >=3.x-dev | >=4.x-dev |
---|---|---|---|---|---|---|
Core | ^8.7.7|| ^9.1|| ^9.2 | ^9.3 | ^10 | |||
PHP | <=7.3 | >=7.4 | >=8.1 |
Requirements
7.x-1.x
8.x-1.x, 8.x-2.x, 3.x, 4.x
- Field module (in core)
Known problems
Please use the issue queue to report problems.
DER issues in core.
Credits
Development being undertaken by @larowlan and @jibran of PreviousNext
Tutorials
- Drupal modules the one percent did a screencast of this module in action (4 minutes long)
Project information
- Module categories: Site Structure
- 20,620 sites report using this module
- Created by larowlan on , updated
- Drupal 10 is here!
Please use 3.x release if you are using 1.x release.
Please use 4.x release if you are using 2.x release. - Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Drupal 10.1, 10.2 and 11 compatible release
Development version: 4.x-dev updated 29 Jan 2024 at 11:57 UTC