Click or drag to resize

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.3.169
Syntax
IPage CreateChildPage(
	string name,
	ISchema schema,
	bool insertAtBeginning = false
)

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: IPage
Newly 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