SDK Cheat Sheet

SDK Cheat Sheet

This cheat sheet includes code templates for use not only in your app but also in the browser console. To get started and benefit the most from it, see Working in the Browser Console.


Variables: o CMS object, w widget, x CMS object or widget, a array, i image object

Pages and resources

Updating attributes

Searching objects

Bulk operations

React component templates (basic widget setup)

Defining a widget class

Defining a widget component

Providing the editing configuration for a widget (optional)

Multi-site and multi-language

Deleting the example content

Publishing the working copy after executing the code below will remove everything.

After the above code has been executed, you will receive an error until you define at least a page with the path “/” in your project. Also, for making searches work, a search results page is required: