IPageCreateChildPage Method
|
Creates a new child page under the current page.
Namespace:
Ingeniux.CMS
Assembly:
Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
Syntax IPage 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
- Type: SystemString
Name of the new child page to create. - schema
- Type: Ingeniux.CMSISchema
Schema to be used to create the child Page. If not specified, error will be thrown. - insertAtBeginning (Optional)
- Type: SystemBoolean
Specified whether to create the child page as the first child or last child.
Return Value
Type:
IPageNewly created child page
Remarks If 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