Page.create (Method)
Creates a page in the specified subsite.
Returns:
PageID (integer)
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. |
name | PageName | Required | The name of the page. |
title | PlainText_NonNull_255 | Required | The internal CommonSpot title of the page. |
caption | PlainText_255 | Required | The title and title bar caption of the page. |
publicationDate | Datetime | Required | The date and time at which the page will be published. |
categoryID | PageCategoryID | Required | The ID of the category under which the page is classified. |
templateID | TemplateID | Required | The ID of the template from which this page derives. |
description | PlainText | Optional. Defaults to an empty string. | A description of the page. |
targetedAudienceID | ID_0 | Optional. Defaults to '1'. | The ID of the targeted audience category, otherwise 0. |
confidentialityID | ConfidentialityID_0 | Optional. Defaults to '0'. | The ID of the confidentiality category, otherwise 0. |
showInList | ShowInList_EmptyString_Inherit | Optional. Defaults to 'PageIndex,SearchResults'. | A comma-delimited list of one or more 'showIn' values; for example, 'PageIndex', 'SearchResults', or an empty string. |
expirationDate | Timestamp_EmptyString | Optional. Defaults to an empty string. | The date and time at which the page will expire. |
expirationAction | ExpirationAction_EmptyString | Optional. Defaults to an empty string. | The action that occurs at the document's expiration date; for example, 'Warn', 'DenyAll', 'DenyPublic', or 'Redirect'. Specify an empty string for no action. |
expirationRedirectURL | ValidURL_EmptyString | Optional. Defaults to an empty string. | If the value of this method's 'expirationAction' argument is 'Redirect', this argument is the fully-qualified URL to which CommonSpot redirects the viewer. |
expirationWarningMsg | PlainText_255 | Optional. Defaults to an empty string. | If the value of this method's 'expirationAction' argument is 'Warn', this argument is the warning message that CommonSpot displays. |
metadata | MetadataValueArray | Optional. Defaults to '#ArrayNew(1)#'. | An array of MetadataValue structures that describe the metadata for the page, or an empty array if no metadata is specified. |
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 |
---|---|
73002 | A warning message must be specified if the expiration action is 'Warn'. |
73003 | A redirect URL must be specified if the expiration action is 'Redirect to another page/url'. |
1000410 | Another CommonSpot content object with the specified $1 already exists. |
Notes:
None