1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
\r
4 <link href="style.css" REL="stylesheet" TYPE="text/css" MEDIA="screen">
\r
5 <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
\r
6 <title>Kiriwrite Documentation - Developer Documentation - 3.28: addpage</title>
\r
9 <div class="menubarback">
\r
10 <div class="menubar">
\r
11 <span class="apptitle">Kiriwrite</span>
\r
12 <a href="index.html">Index</a> | <a href="user.html">User
\r
13 Documentation</a> | <a href="tutorial.html">Tutorial Documentation</a> |
\r
14 <a href="developer.html">Developer Documentation</a>
\r
17 <div class="pageinformation">
\r
18 <span class="pagetitle">3.28 addpage</span><br><br>
\r
20 Adds a page to the selected database.<br><br>
\r
22 <span class="heading">Parameters:</span><br><br>
\r
25 $kiriwrite_dbmodule->addpage(options);
\r
30 <span class="heading">Usage:</span><br><br>
\r
33 $kiriwrite_dbmodule->selectdb(“database”);<br>
\r
34 $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 });
\r
40 Specifies the following options as a hash in any order.<br><br>
\r
42 <table class="infotable">
\r
44 <td class="tableheading">Value</td>
\r
45 <td class="tableheading">Description</td>
\r
48 <td class="tabledata">PageFilename</td>
\r
49 <td class="tabledata">Specifies the page filename to use.</td>
\r
52 <td class="tabledata">PageName</td>
\r
53 <td class="tabledata">Specifies the page name.</td>
\r
56 <td class="tabledata">PageDescription</td>
\r
57 <td class="tabledata">Specifies the page description.</td>
\r
60 <td class="tabledata">PageSection</td>
\r
61 <td class="tabledata">Specifies the page section.</td>
\r
64 <td class="tabledata">PageTemplate</td>
\r
65 <td class="tabledata">Specifies the page template to use.</td>
\r
68 <td class="tabledata">PageContent</td>
\r
69 <td class="tabledata">Specifies the content of the page.</td>
\r
72 <td class="tabledata">PageSettings</td>
\r
73 <td class="tabledata">Specifies the page settings to use.<br><br>
\r
74 1: Use page name and section name.<br>
\r
75 2: Use the page name only.<br>
\r
76 3: Use the section name only.<br>
\r
77 0: Don't use page name or section name.
\r
84 If a page with the filename given already exists then the error returned should be 'PageExists' in the $error scalar.<br><br>
\r
86 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.
\r