1.23 kiriwrite_compile_makepages
kiriwrite_compile_makepages compiles the pages in the database with the templates (if they have one assigned), applies any filter settings (if any are in the filter database) and writes them to the output directory.
kiriwrite_compile_makepages will return data that is intended for kiriwrite_output_page.
Parameters:
kiriwrite_compile_makepages(type, confirm, override, overridetemplate, selectedlist);
Usage:
$pagedata = kiriwrite_compile_makepages("single", 0, 0, "", ['database1']);
$pagedata = kiriwrite_compile_makepages("single", 1, 0, "", ['database1']);
$pagedata = kiriwrite_compile_makepages("multiple", 0, 1, "template.html", ['database1','database2','database3','database4']);
$pagedata = kiriwrite_compile_makepages("multiple", 1, 0, "", ['database1','database2','database3','database4']);
type
Specifies the type meaning if a single or multiple databases should be compiled. This is required every time the subroutine is called.
Value |
Description |
single |
Specifies that a single database should be compiled. |
multiple |
Specifies that multiple databases should be compiled. |
confirm
Specifies if the action to compile the selected database should be confirmed by passing a '1'. This is required every time the subroutine is called.
override
Override the template being used with the overridetemplate value.
overridetemplate
Override the template using the filename given.
selectedlist
Specifies the list of databases to compile as an array. This is required every time the subroutine is called.