Create Page programmatically / cHandle

Just for my understanding:

These Lines

will overwrite a cHandle in the $data array regardless if I use

$page = $parentPage->add(
$pageType,
array(
‘cName’ => $xlsxrow[$pageTitleId],
‘cDescription’ => ‘’,
‘cHandle’ => $newPagePath
),
$pageTemplate
);

?

Thx

Stephan

It shouldn’t.
From the head, += with associative arrays should keep values from base array (if keys are present there).

1 Like