How can I set the permission setting of a page programmatically to “by pagetype”
This works to create the page:
$projectpage = $userpage->add($pageType, array( 'cName' => 'Projekt', 'cDescription' => 'Hierher Beschreibung', 'cHandle ' => 'projekt' ), $template); $projectpage->update(array( 'uID' => $user->getUserID() // updates the author ID on the page ));