Confusing field names when creating 2+ Keepeek media types

Created on 1 May 2025, 5 days ago

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 " 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:

  • Keepeek
    • 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".

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇹🇼Taiwan johnalbin Taipei, Taiwan

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

Comments & Activities

Production build 0.71.5 2024