View modes when rendering across types

Created on 1 July 2022, almost 3 years ago
Updated 19 March 2025, 18 days ago

Problem/Motivation

External entities should have view modes available based on the type of the entity rendered in the consumer site. Currently, they get local view modes from the server's entity type.

Steps to reproduce

Take an External Entity of type Taxonomy Term and set it up in the consumer site to render as a Content type.

When setting view modes (in manage display for the external entity reference field) the available view modes are pulled from the type of the external entity, taxonomy term, instead of the type of the rendered display.

This can create a scenario where the view modes available don’t match the ones for the rendered display and instead just render the content using the default view mode.

Proposed resolution

Load whatever the rendered display is for view modes and form modes instead of getting the type directly from the external entity.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rwanth New York, USA

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.

Production build 0.71.5 2024