https://www.contentful.com is a content management platform for web applications, mobile apps and connected devices. It allows you to create, edit & manage content in the cloud and publish it anywhere via powerful API. Contentful offers tools for managing editorial teams and enabling cooperation between organizations.
This extension provides a JSON formatter and validator for the Contentful web app based on the Codemirror library. You can use this extension with 'Object' field types.
Check you have the requirements needed to use our extensions and have the extensions SDK installed.
Install the dependencies needed with npm install
.
Set the access token in your environment:
export CONTENTFUL_MANAGEMENT_ACCESS_TOKEN=<content-management-access-token>
Create the extension:
contentful-extension create --space-id <yourSpaceId>
Serve on http://localhost:3000 using Gulp, automatically watching and reserving any changes:
gulp watch
The same constraints apply to loading unsafe scripts.
To help reduce the code size when used in production, we recommend you take the following steps when using it in production:
-
Host it on your own environment, using HTTPS and CORS enabled.
-
Update the extension.prod.json file to reflect your server details.
-
Update your space using the new description file:
contentful-extension update --descriptor extension.prod.json --force --space-id <yourSpaceId>