Problem/Motivation
When creating 2 or more Keepeek media types, the field machine names are confusing and do not align with the order the media types are created in.
If you create 3 Keepeek media types with the "Field with source information: Create" option, you'll get the following 6 fields added to those 3 media types:
- first media type:
- field_media_keepeek
- field_media_keepeek_1_json
- second media type:
- field_media_keepeek_1
- field_media_keepeek_2_json
- third media type:
- field_media_keepeek_2
- field_media_keepeek_3_json



Steps to reproduce
With a fresh install of the module, create 3 new media types with the following options:
- Media source: Keepeek
- Media source configuration
- Field with source information: Create
Proposed resolution
A few possible solutions:
- Use the same auto-generated number for both fields.
- Or use the media type's machine name as the base of the field names. e.g. a
keepeek_video media type gets these two fields: field_media_keepeek_video and field_media_keepeek_video_json
- Allow the user to specify the field name
User interface changes
Possibly a new form field for specifying the machine name of the "Field with source information".
Comments