How to display a thumbnail in a collection (not Media) #9684
Answered
by
mouktardev
bhofstaetter
asked this question in
Q&A
-
Hi, I have a collection with an image upload field. How can I display the thumbnail of this field, in a cell on the collection overview page (just like in the media collection)? Do I need to write a custom cell component for this or is there a build in way? Thank's a lot! |
Beta Was this translation helpful? Give feedback.
Answered by
mouktardev
Dec 10, 2024
Replies: 1 comment 2 replies
-
In your Media Collection upload options just add export const Media: CollectionConfig = {
upload: {
displayPreview:true,
}
} |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
bhofstaetter
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In your Media Collection upload options just add
displayPreview:true,
and any collection that have relations to media will have a thumbnail similar.found it here in the docs
also reference here #5015