Page.copy (Method)
Copies the specified page to the specified subsite. If CommonSpot cannot copy the page, it throws an error.
Returns:
Void
Arguments:
Name | Type | Required | Description |
---|---|---|---|
subsiteIDOrURL | SubsiteIDorURL_EmptyString | Required | The ID of the target subsite, or the server relative path to the target subsite, or an empty string for the current subsite. |
pageID | RealPageID_NonBaseTemplate | Required | A page's ID. CommonSpot throws an error if it cannot copy the page. |
Context:
License Requirements | None |
Permission Requirements | subsite:CreatePages |
Deny Context | None |
Require Context | AuthoringEnabled |
Author Lock | (not required) |
Transaction Logging | If transaction logging is enabled at the site level, calls to this method will be logged |
Customization | This method may be customized at the site level |
Error Codes:
Code | Error Message |
---|---|
31040 | $1 |
Notes:
None