Skip to content

JKannekens/kontent-custom-element-cloudinary

Repository files navigation

alt text

Cloudinary asset selector for Kentico Kontent

This repository contains the source code of Cloudinary asset selector custom element for Kentico Kontent. Created by TrueLime

Setup

  1. Deploy the code to a secure public host
  2. Follow the instructions in the Kentico Kontent documentation to add the element to a content model.
  3. Configure the JSON parameters as detailed in the JSON Parameters section

JSON Parameters

{
    "cloudName": "<YOUR CLOUD NAME>",
    "apiKey": "<YOUR API KEY>"
}

Response

After selecting assets from Cloudinary these are returned in an array of assets. For more information see: https://cloudinary.com/documentation/media_library_widget

{
  assets: [{
  "public_id": "sample",
  "resource_type": "image",
  "type": "upload",
  "format": "jpg",
  "version": 1511474034,
  "url": "http://res.cloudinary.com/demo/image/upload/v1511474034/sample.jpg",
  "secure_url": "https://res.cloudinary.com/demo/image/upload/v1511474034/sample.jpg",
  "width": 864,
  "height": 576,
  "bytes": 120257,
  "duration": null,
  "tags": [],
  "context": [],
  "created_at": "2017-11-23T21:53:54Z",
  "derived": [
    {
      "url": "http://res.cloudinary.com/demo/image/upload/c_scale,e_grayscale,f_auto,q_auto,w_100/v1511474034/sample.jpg",
      "secure_url": "https://res.cloudinary.com/demo/image/upload/c_scale,e_grayscale,f_auto,q_auto,w_100/v1511474034/sample.jpg"
    }
  ]
}]}

Deploying

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 GitHub account as well.

Deploy to Netlify

About

Cloudinary asset selector for Kentico Kontent

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published