IPageCreateChildPage Method
|
Creates a new child page under the current page.
Namespace: Ingeniux.CMSAssembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
SyntaxIPage CreateChildPage(
string name,
ISchema schema,
bool insertAtBeginning = false
)
Function CreateChildPage (
name As String,
schema As ISchema,
Optional insertAtBeginning As Boolean = false
) As IPage
IPage^ CreateChildPage(
String^ name,
ISchema^ schema,
bool insertAtBeginning = false
)
abstract CreateChildPage :
name : string *
schema : ISchema *
?insertAtBeginning : bool
(* Defaults:
let _insertAtBeginning = defaultArg insertAtBeginning false
*)
-> IPage Parameters
- name String
- Name of the new child page to create.
- schema ISchema
- Schema to be used to create the child Page. If not specified, error will be thrown.
- insertAtBeginning Boolean (Optional)
- Specified whether to create the child page as the first child or last child.
Return Value
IPageNewly created child page
RemarksIf the current user doesn't have the permission to create pages, an error will be thrown.
If a schema is not provided, an error will be thrown.
If the parentPage value is the Recycle Folder, an error will be thrown.
If the current user doesn't have Full Access to this page, an error will be thrown.
The event "PageCreated" will be fired upon child page creation.
See Also