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 loads videos from a wistia project into the Contentful Web App. You can then preview, select and store the video as part of your content.
Check you have the requirements needed to use our extensions and have the extensions SDK installed.
You will need an account on wistia and an API key, preferably with read-only permissions.
Install the dependencies needed with npm install
.
Create a .env configuration file with your Contentful credentials:
export SPACE_ID=<space-id>
export CONTENTFUL_MANAGEMENT_ACCESS_TOKEN=<content-management-access-token>
Add the variables to your environment.
source .env
Compile the bundle to an index.html to upload to your space.
npm run bundle
Create the extension in your space:
npm run extension:create
To update the extension, first update teh bundle with webpack and then update the extension in your space:
npm run bundle
npm run extension:update
Start a local server, changing the port if needed:
python -m SimpleHTTPServer 3030
Tell Contentful to render the widget from your local machine:
npm run bundle
npm run extension:dev
The same constraints apply to loading unsafe scripts.
Enable the extension in the Contentful web app for a "Short text" field by opening the Settings for a field and selecting the widget in the appearance tab.