Measurable Success «10 Checkpoints for Future-Proof Enterprise CMS» White Paper
Measurable Success - White Paper

copy()

Creates a copy of the CMS object.

obj.copy();

Returns

A Promise<Obj>. The resolved value will be the copy of the CMS object.

Example

Create a copy of the current page and assign a path to the copy:

Scrivito.currentPage().copy().then(page => {
  page.update({_path: '/docu/howto'});
});

Remarks

In the copy, the permalink and path will be empty.