Allow referencing existing entity when using plus buttons for entity reference fields

Created on 1 May 2024, 8 months ago
Updated 1 June 2024, 7 months ago

Problem/Motivation

In version 1.x plus buttons were used only for paragraphs. As paragraphs are not re-usable and are attached to the host entity it was enough to open the add paragraph form and attach the new entity to the host entity. Version 2.x now supports also entity reference field types. This means that the existing entities can be re-used instead of creating new ones.

Steps to reproduce

Enable "Add items" feature on entity reference field, for example for media image reference. When clicking on plus buttons from frontend editing action links, the sidebar will be opened with the list of allowed media bundle names that are links to "Add media" forms. There is no way to reference existing entity.

Proposed resolution

For entity reference fields add the possibility to reference existing entity in the "add items" page.

Remaining tasks

Create MR/patch

User interface changes

"Add items" page for entity reference fields will contain the optional form to reference existing items.

API changes

None

Data model changes

None

Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

🇩🇪Germany a.dmitriiev

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024