Skip to content

Simple Kentico Cloud Delivery SDK using JavaScript and JQuery only

License

Notifications You must be signed in to change notification settings

MiraiTunga/Kentico-Cloud-Delivery-JQuery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Kentico-Cloud-Delivery-JQuery

A Simple and Straightforward Kentico Cloud Delivery SDK using JavaScript and JQuery only

A client library for retrieving content from Kentico Cloud that uses JavaScript and JQuery only.

Example

Initializing the KenticoCloudDeliveryClient Objcet and Getting item by code name and appending it to DOM and then logging returned data

var kenticoCloud = new KenticoCloudDeliveryClient("{PROJECT ID GOES HERE}", false);

kenticoCloud.GetItemByCodeName("hario_mini_mill_slim").then(AppendToHTML).then(kenticoCloud.Helpers.LogReturn);

function AppendToHTML(data) {
    $("#headline").append(data.item.elements.product_name.value);
    $("#bodytext").append(data.item.elements.long_description.value);
    $("#banner").attr("src", data.item.elements.image.value[0].url);
}

see ExampleUsage.js for more exmaples

Feedback & Contribution

Feedback & Contributions are welcomed. Feel free to take/start an issue & submit PR.

About

Simple Kentico Cloud Delivery SDK using JavaScript and JQuery only

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published