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.24: edittemplate</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.24 edittemplate</span><br><br>
\r
20 Edits a template from the template database.<br><br>
\r
22 <span class="heading">Parameters:</span><br><br>
\r
25 $kiriwrite_dbmodule->edittemplate(options);
\r
30 <span class="heading">Usage:</span><br><br>
\r
33 $kiriwrite_dbmodule->edittemplate({ TemplateFilename => “template.html”, NewTemplateFilename => “newtemplate.html”, NewTemplateName => “New Template Name”, NewTemplateDescription => “New Template Description”, NewTemplateLayout => “This is the new template layout.” });
\r
39 Specifies the following options as a hash in any order.<br><br>
\r
41 <table class="infotable">
\r
43 <td class="tableheading">Value</td>
\r
44 <td class="tableheading">Description</td>
\r
47 <td class="tabledata">TemplateFilename</td>
\r
48 <td class="tabledata">Specifies the template filename to edit.</td>
\r
51 <td class="tabledata">NewTemplateFilename</td>
\r
52 <td class="tabledata">Specifies the new template filename to use.</td>
\r
55 <td class="tabledata">NewTemplateName</td>
\r
56 <td class="tabledata">Specifies the new template name to use.</td>
\r
59 <td class="tabledata">NewTemplateDescription</td>
\r
60 <td class="tabledata">Specifies the new template description to use.</td>
\r
63 <td class="tabledata">NewTemplateLayout</td>
\r
64 <td class="tabledata">Specifies the new template layout to use.</td>
\r
70 If the template being edited does not exist then the error returned should be 'TemplateDoesNotExist' in the $error scalar.<br><br>
\r
72 If (when using a file-based database module) the template database has invalid permissions set then the error returned should be 'TemplateDatabaseInvalidPermissionsSet' in the $error scalar.<br><br>
\r
74 If a database error occurs while editing a template in the template database then the error returned should be 'TemplateDatabaseError' in the $error scalar and information about the error should be placed in the $errorext scalar.
\r