Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Double Reference

No security coverage Under active development 21 sites

This module provides a single field that allows you to select two separate entities. One entity reference is considered primary, while the other is attached. The two selections function independently within the single field.

Provides a single field item that contains two entity reference fields.

One field is the primary that uses all the normal entity reference field forms, the other is an attached field which has most, but not all, of the same options. The two fields work together to form one field.

Notes:

  • The two fields do not interact. That is, changing the value in one does not affect the value in the other. This could be done with a new field widget if someone wants to provide a patch.
  • The attached field uses the default referencing method, nothing fancy like views or entity browsers. The primary field can use everything an entity reference field normally does.

Similar modules:
Double Field - Does not work with references and references are complex enough that it would have been difficult to add it as a patch.
Reference value pair - Only one reference and I needed two.

Acknowledgements:
Thanks to Lullabot for their article that helped me with the initial customization that turned into this module.
Thanks to Mediacurrent, my employer, for providing internal time to work on it when I ran out of weekend.

Ask your assistant about Double Reference

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

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
6
Tracked since
Sep 2023
Latest release
6 months ago
Releases (12 mo)
1 ▼ from 3
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.0.0-alpha5 Pre-release 9–11 Apr 14, 2026
2.0.0-alpha4 Pre-release 9–11 Jul 16, 2025
2.0.0-alpha3 Pre-release 9–11 May 14, 2025
2.0.0-alpha2 Pre-release 9–10 Apr 8, 2025
2.0.0-alpha1 Pre-release 9–10 Sep 29, 2023
2.0.x-dev Dev 9–11 Sep 29, 2023