Skip to content

storyblok/fieldtype-custom-asset-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Storyblok Fieldtype example to integrate your own asset manager

This field type is an example to see how you can integrate your own asset manager with a custom field type and iframe communication.

It assumes that your asset manager is accessable with an apiKey as url parameter.

To pass the selected asset to the content model of Storyblok you will need to setup iFrame communication.

Following an example of how to listen on messages from your asset manager (add this to the pluginCreated function):

addEventListener('message', (event) => { this.model.image = event.data }, false)

How to setup

  1. Copy and paste the content of Fieldtype.js into the online plugin editor
  2. Exchange YOUR_ASSET_MANAGER_URL with the url of your asset manager
  3. Add the option apiKey to the field type

In the end you should have your plugin available in the schema definition of a field:

About

A Storyblok Custom FieldType plugin to integrate with your own Asset Manager.

Topics

Resources

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published