Problem/Motivation
Fragments' intended use case is re-usable content, which will, in many cases, rely on entity reference fields to tie the entities to other content, like nodes and paragraphs. A useful addition would be to include a "Used in" section in the edit screen so that editors can find out where the fragment is used.
Proposed resolution
Should include:
- A counter; "Used in x reference fields"; counting all usages.
- Per use (up to and including entities the user has either view or edit access to), a trace back to parent entities, including the field names for the reference fields. In case of paragraphs, the paragraph itself can be skipped. E.g.
Used in 3 reference fields:
- About, Contact cards
- Heart surgery, Detailed information » Detailed information items » Re-usable information item
- 1 item you do not have access to.
(Contrived example, as it is unlikely for a single fragment to be used both as a contact card and as part of a hierarchical content structure providing detailed information about heart surgery).
Links are either view or edit links depending on permissions, the others are field labels.
Remaining tasks
- Implement
- Review
- Merge
User interface changes
The described container will be part of the fragment edit screen.
API changes
None.
Data model changes
None.
Comments
Comment #2
eelkeblokComment #3
eelkeblokComment #4
eelkeblok