Hi, thanks for this module. Can you please distinguish between the core and Dynamic Entity Reference field type labels? Currently, when adding a field, you see two identical options for every entity type:
This makes it really hard for the site builder to understand what's going on and what you should choose.
Proposed solution:
Suffix the field type labels with "(Dynamic Entity Reference)". If you translate the suffix separately from the label itself, you can still leverage existing translations. In pseudo code: $field_type_label = $entityType->getLabel() . ' ' . t('(Dynamic Entity Reference)')
.
Comment | File | Size | Author |
---|---|---|---|
#7 | change_the_der_field-2805659-7.patch | 2.69 KB | jibran |
|
Comments
Comment #2
jibranThanks for reporting this. Let's change the group name instead.
Comment #3
marcvangendYou're welcome. Grouping them in a separate optgroup sounds like a good idea for this specific form.
That said, there are other places (like /admin/structure/types/manage/NODETYPE/fields) where the field type label is used on its own, without the context of the proposed optgroup. In such a situation, the ambiguity would remain (although it's probably less of a DX problem because it's just info, not a form field). Just my 2 cents.
Comment #4
jibranHere we go.
Comment #5
jibranComment #6
larowlanI think the 'Dynamic entity reference' option now needs to say 'Other' and be listed at the end (if possible)
Looks good otherwise
Comment #7
jibranNice idea. Here we go.
Comment #10
jibranCommitted and pushed to 8.x-2.x and 8.x-1.x. Thanks!
Comment #11
marcvangendThanks jibran!