Add "media" slot to element cards #15651
Unanswered
ryanleichty
asked this question in
Ideas
Replies: 2 comments 10 replies
-
This might be somewhat related to this PR: #15283 |
Beta Was this translation helpful? Give feedback.
0 replies
-
It’s completely up to you whether an entry type should have a thumbnail, based on which field you select as the thumbnail source. That could be an Assets field, or any other field type which implements What exactly would you expect to enter into a “media slot” beyond what’s already possible? |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It feels inconsistent when showing a column of element cards where some have images and others don't. It would be great if element cards had the concept of a media slot that could be optionally configured to display either a selected thumbnail image or fallback to something else (like the entry icon or something else).
Document previews in Sanity have the
title
,subtitle
, andmedia
slots that can be customized to display different values. In the screenshot below, themedia
slot looks for the first image within theimageGallery
array field. If none exist, it falls back to the document icon.Beta Was this translation helpful? Give feedback.
All reactions