Migrating from Static CMS
Sveltia CMS is partially compatible with Static CMS, an archived fork of Netlify CMS. As Static CMS was archived some time ago, we don’t intend to implement any further compatibility beyond what is listed below. However, we may still adopt some of their features that we find useful.
Compatibility
Static CMS made some breaking changes while Sveltia CMS mostly follows Netlify/Decap CMS, so the configuration should be reviewed carefully.
Configuration Options
- Sveltia CMS supports the
sortable_fields,view_filtersandview_groupsoptions with the newdefaultoption. We still support the legacy Netlify/Decap CMS format as well, so you can use either format for these options. - Directory navigation is supported in the Asset Library and the Select File/Image dialog. If you define collection-specific
media_folders, these folders are displayed as separate locations. The subfolders within a configured folder are listed and can be browsed in both places, created from either, and renamed or deleted in the Asset Library. Folders are enabled by default, so thefolder_supportoption formedia_libraryis not supported, nor is thedisplay_in_navigationoption. - The
logo_linkglobal option will not be supported. Usedisplay_urlorsite_urlinstead. - The
yamlglobal option will not be supported, as Sveltia CMS does not expose underlyingyamllibrary options for forward compatibility reasons. However, we do have some data output options, including YAML indentation and quotes.
I18n Support
- The
enforce_required_non_defaulti18n option will not be supported. Sveltia CMS enforces required fields in all locales by default. However, theinitial_localesi18n option allows users to disable non-default locales if needed. Developers can also specify a subset of locales with therequiredfield option, e.g.required: [en].
Widgets
- The date/time format options for the DateTime widget are not compatible since Static CMS switched to date-fns while Decap CMS and Sveltia CMS have replaced Moment.js with Day.js. Update your formats accordingly.
- The KeyValue widget is implemented in Sveltia CMS with the same options.
- The UUID widget is also implemented, but with different options.
- The
prefixandsuffixoptions for the Boolean, Number and String widgets are implemented asbefore_inputandafter_inputin Sveltia CMS, respectively. Ourprefixandsuffixoptions for the String widget are literally a prefix and suffix to the value. - The
multipleoption for the File and Image widgets is supported in Sveltia CMS, along with theminandmaxoptions. - The
select_folderoption for the File widget is supported in Sveltia CMS. The public path of the selected folder is saved as the value, and several folders can be selected with themultipleoption. - The breaking change to the List widget doesn’t apply to Sveltia CMS. You must use the
field(singular) option to produce a single subfield with nonameoutput.
Customization
CMS.registerIcon()will not be supported, as Sveltia CMS includes the Material Symbols font for custom collection icons that doesn’t require manual registration.