3.28 addpage

Adds a page to the selected database.

Parameters:

$kiriwrite_dbmodule->addpage(options);

Usage:

$kiriwrite_dbmodule->selectdb(“database”);
$kiriwrite_dbmodule->addpage({ PageFilename => “newpage.html”, PageName => “New Page Name”, PageDescription => “New Page Description”, PageSection => “New Page Section”, PageTemplate => “pagetemplate.html”, PageContent => “This is the new page content.”, PageSettings => 0 });

options
Specifies the following options as a hash in any order.

Value Description
PageFilename Specifies the page filename to use.
PageName Specifies the page name.
PageDescription Specifies the page description.
PageSection Specifies the page section.
PageTemplate Specifies the page template to use.
PageContent Specifies the content of the page.
PageSettings Specifies the page settings to use.

1: Use page name and section name.
2: Use the page name only.
3: Use the section name only.
0: Don't use page name or section name.

If a page with the filename given already exists then the error returned should be 'PageExists' in the $error scalar.

If a database error occurs while adding a page in the database then the error returned should be 'DatabaseError' in the $error scalar and information about the error should be in the $errorext scalar.