Media only display if the field widget is set to thumbnail and nothing is displayed if the field widget is set to Rendered Entity.

Created on 6 September 2022, about 2 years ago
Updated 19 July 2023, about 1 year ago

Problem/Motivation : Media only display if the field widget is set to thumbnail and nothing is displayed if the field widget is set to Rendered Entity.

Steps to reproduce

Step 1: Add an entity reference media field to any content type.
Step 2: Select media type as Unsplash or pixel.
Step 3: Now create a new entity and in the media field select any media from the unsplash images in the entity browser.
Step 4: Save the node and you won't be able to see the image on the node view.
Step 5: Go to Structure->content_type->{{select the content type you add the media field to }}->manage display-> and on the media field update the field widget setting to thumbnail and save.
Step 6: Again visit the content created in Step 3 and you will be able to see the image saved from unsplash.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India tdnshah

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.

  • 🇳🇱Netherlands seanB Netherlands

    I think if you render the media entity you at least need to make sure the external media entity displays some of its fields for the view mode you are rendering. In this case you should be able to render the thumbnail field for the media item. Could you check if that solves your issue?

Production build 0.71.5 2024