Coder Social home page Coder Social logo

kontent-ai / integration-bynder Goto Github PK

View Code? Open in Web Editor NEW
1.0 21.0 4.0 7.99 MB

Bynder image selector for Kontent.ai

License: MIT License

HTML 0.50% CSS 93.26% TypeScript 6.24%
custom-elements javascript headless-cms digital-asset-management bynder kontent-ai kontent-ai-integration

integration-bynder's Introduction

Core integration

Last modified Issues Contributors Forks MIT License

Stack Overflow Discord

Kontent.ai logo for dark/light scheme. commercetools logo

FeaturesDemoDeployConfigurationSaved valueDATContributorsLicenseResources

This custom element extension for Kontent.ai allows users to link selected assets from their bynder asset library into their structured content.

Features

  • Editors can
    • Search for assets in their Bynder project
    • Link selected assets with their content items with preview directly inside of the Kontent.ai editor

Demo

Demo Animation

Getting started

Quick Deploy

Netlify has made this easy. If you click the deploy button below, it will guide you through the process of deploying it to Netlify and leave you with a copy of the repository in your account as well.

Deploy to Netlify

Running manually

The integration is created with Create React App. First you will need to install npm dependencies with npm install. Then use npm run build to build the integration or npm run start to start a local development server. See https://create-react-app.dev/docs/available-scripts for more scripts.

Bynder configuration

You don't need to do anything special inside of your Bynder account in order to access the data through the custom element. Instead, you'll be prompted to login into your Bynder account to access your asset library (like seen in the demo animation above).

This element has been created by simply adding the official Compact View by Bynder. You can learn more about this integration component in its official documentation on Bynder's website.

⚠ WARNING: You have to have a Bynder account/credentials in order to use this extension

Configuring the Custom Element

You will need to add the custom element to a content type filling in the hosted code URL and the following JSON parameters:

{
  "bynderUrl": "https://<YOUR BYNDER URL>",
  "previewDerivative": "thumbnail",
  "webDerivative": "webImage"
}

All of the parameters are optional. If you don't provide bynder URL, the selector will prompt for it while logging in. The derivative parameters can be used to alter which of the defined image derivatives will be used by the selector preview and output. More details in the official documentation.

What is Saved

The custom element saves a list of asset objects that has been included into the content item through the element. Example output:

[
  {
    "id": "36AAB6D3-7DFE-41AB-A0B95A826D4C",
    "databaseId": "a8ad6713-8687-4356-b22f-d09334bdf7b2",
    "name": "test image",
    "description": "test image description",
    "updatedAt": "2021-01-20T17:40:14Z",
    "bynderUrl": "https://support.getbynder.com/media/?mediaId=36AAB6D3-7DFE-41AB-A0B95A826D4C",
    "previewUrl": "https://support.bynder.com/4407064881426/test.jpg",
    "webUrl": "https://support.bynder.com/4407064881426/webimage-test.jpg",
    "files": [
      {
        "webImage": {
          "fileSize": null,
          "height": 399,
          "url": "https://support.bynder.com/4407064881426/webimage-test.jpg",
          "width": 800
        }
      },
      {
        "thumbnail": {
          "fileSize": null,
          "height": 125,
          "url": "https://support.bynder.com/4407064881426/thul-test.jpg",
          "width": 250
        }
      },
      {
        "transformBaseUrl": {
          "fileSize": null,
          "height": null,
          "url": "https://datdemo.getbynder.com/transform/fb60f96f-ebf2-4a69-9ed8-8a828ef17283/Music",
          "width": null
        }
      }
    ]
  }
]

DAT

If you are using Bynder's Dynamic Asset Transformation, your public DAT URL will be included in the files property under transformBaseUrl (see example output above). You can use this URL to generate derivates you want on the fly. To learn more about DAT visit Bynder's documentation.

Contributors

We have collected notes on how to contribute to this project in CONTRIBUTING.md.

License

MIT

Additional Resources

integration-bynder's People

Contributors

christopherjennings avatar hejtmii avatar jirilojda avatar kontent-ai-bot avatar micheltol avatar petrsvihlik avatar simply007 avatar strizr avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.