copyPageContent
Syntax | copyPageContent(sourcePageId, targetPageId); | Package | |
Alias | Pkg Usage |
Description
Copies page content from one page to another.
Parameters
Parameter name | Type | Required | Description |
|---|---|---|---|
sourcePageId | Number | Yes | The ID of the source page. |
targetPageId | Number | Yes | The ID of the target page. |
Return Type
Boolean(true\false)
Returns true if page body was copied successfully.
Example
number sourcePageId = 10002;
number targetPageId = 11003;
return copyPageContent(sourcePageId, targetPageId);