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.
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
Defining a widget class
Defining a widget component
Providing the editing configuration for a widget (optional)
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: