UI Extensions
UI Extensions allow you to customize and extend the functionality of the Contentful web app’s entry editor. Extensions can be simple user interface controls, such as a dropdown, or more complex micro applications such as our Markdown editor.
To get started with UI extensions please refer to our dedicated extensibility section.
An extension resource describes to which fields your extension can be applied and where its code can be found. The following is a list of the properties of an extension resource:
* Valid field types are:
{type: "Symbol"}{type: "Text"}{type: "RichText"}{type: "Integer"}{type: "Number"}{type: "Date"}{type: "Boolean"}{type: "Location"}{type: "Object"}{type: "Link", linkType: "Asset"}{type: "Link", linkType: "Entry"}{type: "Array", items: {type: "Symbol"}}{type: "Array", items: {type: "Link", linkType: "Entry"}}{type: "Array", items: {type: "Link", linkType: "Asset"}}
** One of src or srcdoc has to be present:
- Use
srcdocif you want to host the extension code in Contentful. Note that extensions hosted in Contentful have a size limit of 200KB. - Use
srcif you host the extension yourself. Note that on this case your extension must be hosted on a HTTPS domain with CORS enabled.
Extensions collection
Extension
Use this endpoint to create a new extension with a specified ID, or to update a specific extension via its ID. When updating an existing extension, you need to specify the last version of the extension you are updating with X-Contentful-Version.