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 - 1.4: kiriwrite_page_edit</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">1.4 kiriwrite_page_edit</span><br><br>
\r
20 kiriwrite_page_edit will edit a page from the selected database. If the confirm value is not supplied then it will write a form for editing a page and if no database and page filename is specified then an error is returned saying no database was specified.<br><br>
\r
22 kiriwrite_page_edit will return data that is intended for kiriwrite_output_page.<br><br>
\r
24 <span class="heading">Parameters:</span><br><br>
\r
27 kiriwrite_page_edit(database, filename, newfilename, newname, newdescription, newsection, newtemplate, newsettings, newcontent, confirm);
\r
32 <span class="heading">Usage:</span><br><br>
\r
35 $pagedata = kiriwrite_page_edit("database", "oldfilename.html");<br>
\r
36 $pagedata = kiriwrite_page_edit("database", "oldfilename.html", "newfilename.html", "New Page Filename", "New Page Description", "New Page Section", "newtemplate.html", 0, "New Page Content, blah, blah, blah, blah", 1);
\r
42 Specifies the database to edit the page from. This is required every time the subroutine is called.<br><br>
\r
45 Specifies the page with the filename to edit. This is required every time the subroutine is called.<br><br>
\r
47 <i>newfilename</i><br>
\r
48 Specifies the new page filename to use when editing a page. If you specify the same filename as the one given in the filename parameter then the filename of the page is not changed. This is required when actually editing a page and cannot be blank.<br><br>
\r
51 Specifies the new page name to use when editing a page. This is required when actually editing a page.<br><br>
\r
53 <i>newdescription</i><br>
\r
54 Specifies the new description to use when editing a page. This is required when actually editing a page.<br><br>
\r
56 <i>newsection</i><br>
\r
57 Specifies the new section to use when editing a page. This is required when actually editing a page.<br><br>
\r
59 <i>newtemplate</i><br>
\r
60 Specifies the new template filename to use when editing a page. This is required when actually editing a page and cannot be blank.<br><br>
\r
62 <i>newsettings</i><br>
\r
63 Specifies the new settings to use when editing a page. This is required when actually editing a page and cannot be blank. The following values specify what should be done to the page when using the <kiriwrite:pagetitle> and <kiriwrite:autosection> tags.<br><br>
\r
65 <table class="infotable">
\r
67 <td class="tableheading">Value</td>
\r
68 <td class="tableheading">Description</td>
\r
71 <td class="tabledata">0</td>
\r
72 <td class="tabledata">Don't use the page name or section name.</td>
\r
75 <td class="tabledata">1</td>
\r
76 <td class="tabledata">Use the page name and section name.</td>
\r
79 <td class="tabledata">2</td>
\r
80 <td class="tabledata">Use the page name only.</td>
\r
83 <td class="tabledata">3</td>
\r
84 <td class="tabledata">Use the section name only.</td>
\r
90 <i>newcontent</i><br>
\r
91 Specifies the new content to use when editing a page. This is required when actually editing a page.<br><br>
\r
94 Specifies if the action to edit the page should be confirmed by passing a '1'.
\r