This repository contains the source code of Cloudinary asset selector custom element for Kentico Kontent. Created by TrueLime
- Deploy the code to a secure public host
- Follow the instructions in the Kentico Kontent documentation to add the element to a content model.
- Configure the JSON parameters as detailed in the JSON Parameters section
{
"cloudName": "<YOUR CLOUD NAME>",
"apiKey": "<YOUR API KEY>"
}
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"
}
]
}]}
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.