Code: Select all
...
$content_obj->SetAlias($newfieldname);
Code: Select all
$error = $content_obj->ValidateData();
So i guess I have two questions:[0] => An error occurred parsing content blocks (look for an invalid template, or duplicated content blocks)
[1] => No default content block was detected in this template. Please ensure that you have a {content} tag in the page template.
1) can I test whether or not a page alias already exists, and
2) why would $content_obj->ValidateData(); report the error, when $content_obj->Save(); works just fine?
The pages that I end up creating are exactly as I want them to be, short of the missing error/alias check. Thank you.