-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thumbnail for collections #307
Comments
There is already the https://github.com/sveltia/sveltia-cms?tab=readme-ov-file#better-collections
Making it to accept multiple field names (an array) for fallback is possible. I’ll take care of it. |
I know that the thumbnail option exists, but when i have an array and want it to use the first element which is an image inside of a list, I can't do that afaik, because I can only set a specific element with a specific index in the list. |
Hmm, so you want to write something like |
That could work yes |
Okay, so I’ll make some changes:
|
Currently the thumbnail only supports setting the thumbnail to be one specific element in one specific location, I think the ability to instead set a widgets name would be nice. So I could set it to
heroImage
and have it automatically search for the first element with theheroImage
name. And maybe allowing multiple values for the thumbnail property would be nice too, so we could define fallbacks when the first one isn't found.The text was updated successfully, but these errors were encountered: