Media type form element for 'Field with source information' shows inconsistent field labels

Created on 17 November 2021, almost 3 years ago
Updated 26 April 2024, 5 months ago

Problem/Motivation

When you edit an existing media type, the form tells you which field holds the source information, using the field label, like this:

> *Video URL* field is used to store the essential information about the media item.

However, when you add a new media type, the form shows a dropdown to select a field to hold source information, and this shows what appear to be the labels of *field storage* entities, not field instances, so you see labels like this:

> - media.field_label
> - media.field_thumbnail

This is inconsistent, and makes it difficult to figure out which field to use if you want two media type to share the same field.

Also, field storage labels are not meant to be human-readable. The labels are merely the machine IDs.

Steps to reproduce

Proposed resolution

A single field storage will have multiple field instances, and these may not necessarily have the same label. So using the instance label in the add form is not simple.

However, the storage label shouldn't be used as-is. The same pattern as in the 'Add field' form should be used, of entity type label + field machine name.

The edit form should show the machine name in addition to the label, to allow matching the two up.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Closed: outdated

Version

11.0 πŸ”₯

Component
MediaΒ  β†’

Last updated 1 minute ago

Created by

πŸ‡¬πŸ‡§United Kingdom joachim

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024