Skip to content

Latest commit

 

History

History
 
 

wistia

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Wistia Extension

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.

Screenshot of Wistia extension

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.

Installation and usage

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

Upload the extension to Contentful

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

Update the extension

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

Local development

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.

Using the extension in the Contentful web app

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.