1.9 kiriwrite_page_multiedit

kiriwrite_page_multiedit will edit multiple pages from a database. If no confirm value is specified then it will write a form asking if the selected pages should be edited and which parts should be edited on all pages. If no database or pages were specified then an error is returned.

kiriwrite_page_multiedit will return data that is intended for kiriwrite_output_page. All parameters are required for this subroutine.

Parameters:

kiriwrite_page_multiedit(database, newsection, altersection, newtemplate, altertemplate, newsettings, altersettings, confirm, filelist);

Usage:

$pagedata = kiriwrite_page_multiedit("database", "", "", "", "", "", "", 0, ['page1.html', 'page2.html', 'page3.html', 'page4.html']);
$pagedata = kiriwrite_page_multiedit("database", "New Section", "on", "newtemplate.html", "on", 0, "on", 1, ['page1.html', 'page2.html', 'page3.html', 'page4.html']);

database
Specifies the database to edit the selected pages from.

newsection
Specifies the new section for the selected pages.

altersection
Specifies if a new section should be given for the selected pages.

newtemplate
Specifies the new template filename for the selected pages. Specify '!none' to not use a template.

altertemplate
Specifies if a new template filename should be given for the selected pages.

newsettings
Specifies the new page settings to use when editing the selected pages. The following values specify what should be done to the page when using the <kiriwrite:pagetitle> and <kiriwrite:autosection> tags.

Value Description
0 Don't use the page name or section name.
1 Use the page name and section name.
2 Use the page name only.
3 Use the section name only.
altersettings
Specifies if a new section name should be given for the selected pages.

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

filelist
Specifies an array giving the list of pages to edit.