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
862 stars 43 forks source link

Hide `compute` field in editor pane #121

Closed samtrion closed 6 months ago

samtrion commented 6 months ago

To avoid confusing the user, I would like to hide compute fields in the editor.

e.g.

label: Translation Key
name: translationKey
widget: compute
value: post-{{fields.slug}}
i18n: duplicate
-preview: false
+hide: true
kyoshino commented 6 months ago

I think preview: false is okay; as I mentioned in #108, it matches the global and collection-specific preview pane configuration.

kyoshino commented 6 months ago

Ah, I’m misunderstanding. The compute field should be hidden in the editor, not preview. I could simply hide it without configuration because showing it in the editor isn’t useful.

samtrion commented 6 months ago

Even better.

kyoshino commented 6 months ago
Screenshot 2024-03-13 at 6 59 17 PM