Test Enterprise-Class Web CMS Scrivito Free for 30 Days
Test Scrivito Free for 30 Days


Creates a copy of a Widget instance.

The copy has all the attributes of the original widget including its widgets. Its attributes can be accessed only after it has been stored in a widgetlist attribute of an Obj or Widget since initially the copy is not contained in such an attribute.


Widget – a copy of the widget


Copy a widget contained in a widgetlist and append it to this list:

obj = Scrivito.Obj.root();
widgetlist = obj.get("body");
widget2 = widgetlist[0].copy();
obj.update({body: widgetlist});