v3.0.0
Mar 5, 2025
Plugins version 3.0 enables entirely new functionality within CMS Plugins with a new set of APIs for modifying and adding to existing Collections that weren’t created by your Plugin (known as UnmanagedCollection
). Along with this, we’ve made a few changes to the core CMS APIs to add stronger typing and set us up for additional features coming soon.
Breaking Changes
The following CMS functions now require their fieldData
to be an object, with value
and type
properties. Which enforces stronger types across CMS APIs.
Collection.getFields()
now returnsField[]
.BooleanField
,StringField
, etc. are classes now.SupportedCollectionField
type has been removed.CollectionField
type has been removed.Collection.getItems()
returns typedfieldData
.CollectionItem.setAttributes()
requires typedfieldData
.ManagedCollection.addItems()
requires typedfieldData
.
Collections
Plugins can now write to Collections.
Added
Collection.addItems()
.Added
Collection.setItemOrder()
.Added
Collection.setFieldOrder()
.
Collection Fields
Collection.addFields()
lets you create new fields.Field.setAttributes()
allows you to update the field.Field.remove()
removes the field from the Collection.Collection.removeFields()
removes fields in bulk.
v2.2.0
Feb 11, 2025
The 2.2.0 release brings some updates to the CMS API, with a focus on improving the experience around having multiple Managed Collections created by the same Plugin.
Managed Collections
Added new
getManagedCollections()
method to get all Collections managed by your Plugin.Added
setAsActive()
method to select the active Collection in the EditorDeprecated
getManagedCollection()
in favor of getActiveManagedCollection()
.Fixed a bug where setting Plugin Data on a
CollectionItemNode
was throwing aNode not found
error.
Collections
Added support for
FieldDivider
type in collection fields.Added
setAsActive()
method to make a collection the active one.Added
removeFields()
method to remove fields by their ID.Added
setFieldOrder()
method to arrange fields in a specific order.Added
slugFieldName
property to Collection interface.
v2.0.0
Nov 11, 2024
The 2.0 release contains a single breaking change to the id
field of the APIs below. Our hashing algorithm for the id
had a higher potential for ID collisions than expected. The id
field will now be a different hashed value for the same user/project compared to 1.x.x
. Logic that stores and compares these values will need updating. To migrate from the old value to the new value, you can reference the apiVersion1Id
field.
v1.1.0
Oct 15, 2024
Resolution support has been added to all image APIs.
Collection item draft status is now exposed in the API.
Plugin windows now support maximum width/height.
v1.0.0
Oct 2, 2024
Plugins initial public release.