API docs     >     Pages and Sites     >     PageMgr

PageMgr->add

Description

add ( $parentPageId, $templateId = 0, $name = 'New ' )
Adds a new Page to the specified parent Page

Parameters

$parentPageId
int
Parent Page Id
$templateId
int
(optional) Template Id
$name
string
(optional) Page name

Returns

int|false
New Page Id or FALSE in case of an error