Restricting allowed view modes for media

Created on 4 September 2024, 4 months ago

Problem/Motivation

Per now, when you add a media entity via the media browser, you are able to select all available view modes for this media entity in the UI:

This is most often not desired, so you should be able to restrict which view modes are available per bundle.

Proposed resolution

Per now most settings like this are located at each content type below the Gutenberg experience tab, like /admin/structure/types/manage/page. However, the required settings for this is already available in the text filter "Embed media" on text formats at /admin/config/content/formats/manage/gutenberg. This config is respected by CKEditor, so it could make most sense that also Gutenberg respects this.

The consequence to have it in the text format would be that you can not have different settings per content type, which also could be seen as an improvement :)

See also discussion in Slack.

Feature request
Status

Active

Version

3.0

Component

Miscellaneous

Created by

🇳🇴Norway vegardjo

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

Comments & Activities

Production build 0.71.5 2024