[Drupal 11.2] Field prefix selector is not available in the "Add field" modal

Created on 23 June 2025, about 1 month ago

Problem/Motivation

On Drupal 11.2, the "Add field" form now opens in a modal dialog. The functionality from this module to select a custom field prefix is no longer present in this new interface. This means all new fields are created with the default field_ prefix, and there's no way to select alternatives like schema_.

Steps to reproduce

On a Drupal 11.2 site, install and enable the
schemadotorg_field_prefix
module.
Configure alternative prefixes in the module's settings.
Go to the "Manage fields" page for any entity bundle and click "Add field".
Observe that the modal for adding a new field does not provide an option to select a prefix.

Proposed resolution

It would be ideal to restore the prefix selection functionality. A great user experience would be to allow changing the prefix directly when editing the machine name, as shown in the attached screenshot. When a user clicks the "[Edit]" link next to the machine name, they could be presented with a dropdown for the prefix and a text field for the field name itself.

Thank you for maintaining this extraordinary module.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡°πŸ‡¬Kyrgyzstan dan_metille

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024