When it comes to fields a user attaches to an entity, the name of the field can be anything, and later can be changed by editing the field too.
This is not possible for base fields exposed in the Entity View and Entity Form View. Sometimes one field label "cannot rule them all" and due to the context of the particular entity bundle the field may need a different name(label).
So I propose that Field UI would allow us to "softly" change the field labels in order to achieve better user and "content" experience.
My idea is that in the "manage display" and "manage form display" pages the field label would be changed into a textfield. The original field name would be used as default value and also as suffix so we won't lose track of which fields are what.
This change(the field label) would be basically picked up by field formatters and widgets only and therefore no other code would be influenced by this.
Comment | File | Size | Author |
---|---|---|---|
#10 | fieldui-overridable-labels.patch | 3.56 KB | Anonymous (not verified) |
#7 | interdiff-2285781-5-7.txt | 1.19 KB | amitgoyal |
#7 | fieldui-overridable-labels-7.patch | 4.15 KB | amitgoyal |
field-labels.png | 30.64 KB | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedI've changed the original label into textfield placeholder to save space.
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedI'll try when A13 will come out since I have to work on Alpha releases.
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #7
amitgoyal CreditAttribution: amitgoyal commentedPlease review attached patch as patch in #5 no longer applies.
Comment #9
Anonymous (not verified) CreditAttribution: Anonymous commentedYeah I know, as I've said I have to wait for A13.
Comment #10
Anonymous (not verified) CreditAttribution: Anonymous commentedWorks with HEAD.
Comment #11
Anonymous (not verified) CreditAttribution: Anonymous commentedThough I see there is a new storage 'third_party_settings' for plugins so I think this could be utilized to store the overidden label and the label would be alterable via hook_form_alter and displayed by hook_entity_view or some similar 'view' hook.