sveltia / sveltia-cms

Alternative to Netlify/Decap CMS. Fast, lightweight, Git-based headless CMS. Modern UX, first-class i18n support, open source & free. Made with Svelte.
MIT License
819 stars 38 forks source link

Changes to `widget: string` with `multiple: true` can't be saved alone #24

Closed frankbits closed 1 year ago

frankbits commented 1 year ago

Changes to widget: string with multiple: true can only be saved if another field was added before. If another field is edited after, the change to the "string-multiple"-field is reverted. Also while editing, the changes are not visualized in the preview.

kyoshino commented 1 year ago

I think the String widget doesn’t have the multiple option. You need to use the List widget without field or fields to save comma-separated strings.

frankbits commented 1 year ago

I think the String widget doesn’t have the multiple option. You need to use the List widget without field or fields to save comma-separated strings.

oh, sry... 😄 did confuse those... thanks... but interestingly it seems to try to do something 🤔🙃

kyoshino commented 1 year ago

Looks like the multiple property is used in some places without a proper widget type check. I’ll fix them. Sorry for the confusion 🤣

frankbits commented 1 year ago

that was me being too stupid to remember the doc😄

but it's probably good to know of this🙃

kyoshino commented 1 year ago

Sveltia CMS should have a config validator so users can spot invalid options sooner 🙂 It’s on my todo list but it takes time...

Also, my ultimate goal is to have a config editor UI to eliminate the need for problematic manual config authoring.