Enable bundle selection when a new view mode is created

Created on 9 May 2023, about 1 year ago
Updated 16 June 2023, about 1 year ago

Problem/Motivation

When you are managing the display of an entity, you have access to existing view modes. If you go create a new view mode, enabling it for the given bundle (content type) is a separate step in an entirely different part of the UI

Proposed resolution

Allow selecting the bundles a view mode will be used for during creation

Remaining tasks

Turn https://github.com/bbenjamin/drupal/pull/2 into a core MR

User interface changes

Previously, we showed a link to add new view modes ("Add new Content view mode"):

Clicking that link brings you to one of the sparest Drupal core forms with a single text field for the view mode name (and machine name) and a save button:

This patch changes that link to a button:

The form for adding and editing is shown in a modal. Users can how select the entity bundles to attach the view mode to right from the form (and delete them when editing):

Finally, we show a message with a link to make it easy to jump to the other form at the content type to edit the view mode:

API changes

N/A

Data model changes

N/A

Release notes snippet

โœจ Feature request
Status

Fixed

Version

11.0 ๐Ÿ”ฅ

Component
Field UIย  โ†’

Last updated 6 days ago

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States tim.plunkett Philadelphia

Live updates comments and jobs are added and updated live.
  • Field UX

    Usability improvements related to the Field UI

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024