1.16 kiriwrite_template_edit

kiriwrite_template_edit edits a template in the template database. If no confirm value is given then it will write a form for editing a template. If no template filename is given then an error is returned.

kiriwrite_template_edit will return data that is intended for kiriwrite_output_page.

Parameters:

kiriwrite_template_edit(filename, newfilename, newname, newdescription, templatelayout, confirm);

Usage:

$pagedata = kiriwrite_template_edit("template.html");
$pagedata = kiriwrite_template_edit("template.html", "newtemplate.html", "New Template Name", "New Template Description", "New Template Layout", 1);

filename
Specifies the filename of the template to edit. This is required every time the subroutine is called.

newfilename
Specifies the new filename of the template. If the filename is the same as the filename parameter then the template filename isn't changed. This is required when editing the template.

newname
Specifies the new name of the template. This is required when editing the template.

newdescription
Specifies the new description of the template. This is required when editing the template.

templatelayout
Specifies the new template layout for the template. This is required when editing the template.

confirm
Specifies if the action to edit a template should be confirmed by passing a '1'.