SiteTreeServicesCreateNewPage Method |
Namespace: IngeniuxCMService
public XHRServiceResponseGeneric<PageActionOutput> CreateNewPage( string parentId, string pageName, string ruleId, string schemaId, string ss, string userID, string pubTargetId, bool useSchemaName = false, bool insertAtEnd = false )
[Missing <param name="useSchemaName"/> documentation for "M:IngeniuxCMService.SiteTreeServices.CreateNewPage(System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.Boolean,System.Boolean)"]
[Missing <param name="insertAtEnd"/> documentation for "M:IngeniuxCMService.SiteTreeServices.CreateNewPage(System.String,System.String,System.String,System.String,System.String,System.String,System.String,System.Boolean,System.Boolean)"]
Object containing information of the action and property of the created Page
{ "code": 0, "error": null, "message": { "pageAction": "newpage", "pageProperties": { "name": "Detail", "allowedCategoryRoots": [], "ancestors": ["x1", "x2", "x112", "x116"], "assignedGroup": null, "assignedUser": { "name": "Turtle Master", "email": "awang@ingeniux.com", "userId": "INGENIUX\\awang" }, "canClaimPage": false, "canTranslate": false, "checkedOut": true, "error": null, "icon": 2, "isAssignedToOtherUser": false, "isEditable": true, "isInWorkflow": false, "justRecycled": false, "languageRootId": "x112", "lingualMaps": { "clones": [], "master": null }, "locale": "en-us", "localeInherited": true, "markedForPublish": false, "markedForPublishAny": false, "markedForPublishPropagated": false, "nextPageId": null, "nextPageIndex": 0, "noDnd": false, "numChildPages": 0, "pageId": "x124", "parentId": null, "pendingMasterVersion": 0, "referenceProps": { "created": "20140130T19:04:22", "createdBy": "INGENIUX\\awang", "endDate": "00010101T00:00:00", "lastModified": "20140130T19:04:22", "lastModifiedBy": "User\/INGENIUX___awang", "publishAs": "", "startDate": "00010101T00:00:00" }, "remoteServer": "", "schemaFriendlyName": null, "schemaName": "Details", "schemaOnLatestVersion": false, "securityLevel": 2, "userCanCopyPage": true, "workflow": null }, "queryString": { "pageName": "Detail", "parentPageId": "x116", "schemaFile": "schemas\/194" } } }
If Page doesn't exist, returns error status
If Page Creation Rule or Schema Id is specified, but don't exist, returns error status
If Page Creation Id is specified, uses Page Creation Rule to create the Page; Otherwise, uses Schema to create the Page
Specified "ss" XSLT stylesheet doesn't affect Page creation with Schema at all
Created new Page is checked out and assigned to specified User
If "userId" is not specified, Page will be assigned to current User