CMS.registerPreviewStyle()has newcollectionandfileoptions to apply a preview style to specific collections or files only, including singletons (_singletons). When several styles apply to an entry, they are combined in the order they were registered.- The
addFilefunction of a custom field type has a newreplaceoption. It overwrites an existing file with the same name instead of saving a uniquely named copy. This is useful for files a control regenerates under a fixed name, such as a thumbnail. (#1074) - Bug fixes and improvements.
Full Changelog: v0.239.1...v0.240.0