[upstream] Entities with no custom viewmodes cannot be embedded as "Rendered entity"

Created on 13 October 2016, over 8 years ago
Updated 6 February 2025, about 1 month ago

Problem/Motivation

This is a follow-up of #2736741: Treat each view mode in "Rendered entity" formatter as a standalone formatter β†’ .

After the change on that issue, new installs with the following configuration:
- Media entities with image bundle, no custom viewmode created for this entity's display
- Entity embed

will have only the following display plugins available when creating an embed button:
- Entity ID
- Label
- Thumbnail

This is bad because the end user might already be used to the old "Rendered Entity" formatter from entity_reference fields, and might look at these 3 alternatives without knowing how to proceed. The behavior perceived is that it is not possible to render the entity at all.

Proposed resolution

The ideal solution would be to use the "default" viewmode and present it as an option labelled something like "Render the entity using the default viewmode", but I understand that this could be tricky due to core's handling of the "default" display mode

At least, we should improve the description here and indicate that it possible to show the rendered entity, but before being able to select that, they need to:
1) create a custom viewmode
2) activate it on the entity's display
3) clear the caches
and only then this option will be available on the button creation form.

πŸ› Bug report
Status

Closed: won't fix

Version

1.0

Component

User interface

Created by

πŸ‡ͺπŸ‡ΈSpain marcoscano Barcelona, Spain

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States jayemel

    There should absolutely be either a "default" option, or unchecked "Allowed Entity Embed Display plugins" should be ignored completely while embedding.

    "If none are selected, all are allowed." makes no sense, and that's obvious to everyone because of the disclaimer that follows "Note that these are the plugins which are allowed for this entity type, all of these might not be available for the selected entity."

    The leaves entities without a custom display mode in the awkward situation where they HAVE to create a display mode for the embed button to make sense. I.e. it's extra work and config.

  • πŸ‡ΊπŸ‡ΈUnited States jayemel

    To add insult to injury, if you try to create your own "default" view mode, you get "The machine-readable name is already in use. It must be unique."

Production build 0.71.5 2024