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 all website content

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

After executing the above code to delete all objects, an error may occur if your project doesn’t have a homepage. To prevent this, make sure that a homepage exists by executing the following code prior to deleting all objects: