To set many of the variables below specify them in config.php
.
$AutoCreate
$AutoCreate[REGEXP] = PAGE_PARAMETERS;
REGEXP
is a regular expression which will identify the pages to be autocreated, and PAGE_PARAMETERS
is an array of attributes for the page to be created. For example,
$AutoCreate['/^Category\\./'] = array('ctime' => $Now);
$DefaultPageTextFmt
$DefaultPageTextFmt = '(:include $[{$SiteGroup}.PageNotFound]:)';
$DeleteKeyPattern
$DiffKeepDays
= 30; # keep revisions at least 30 days
:$DiffKeepNum:This variable contains the minimum number of changes to be kept in the page history, even if some of them are older than the limit defined by $DiffKeepDays. It prevents lost history of pages that are older, but have few changes.
$DiffKeepNum
= 50; # keep at least 50 revisions (default is 20)
$DraftSuffix
$EditFunctions
$EditFunctions = array('EditTemplate', 'RestorePage', 'ReplaceOnSave', 'SaveAttributes', 'PostPage', 'PostRecentChanges', 'AutoCreateTargets', 'PreviewPage');
:$EditRedirectFmt: The page to which an author is sent after pressing "Save" or "Cancel" from an edit form. Defaults to "$FullName", which sends the author to the page just edited, but can be changed to specify another page.
# redirect to Main.HomePage $EditRedirectFmt = 'Main.HomePage'; # redirect to HomePage of current group $EditRedirectFmt = '{$Group}.HomePage';
$EditTemplatesFmt
# Use 'Main.NewPageTemplate' as default text of all new pages $EditTemplatesFmt = 'Main.NewPageTemplate'; # Use 'Template' in the current group for new pages $EditTemplatesFmt = '$Group.Template'; # Use 'Template' in the current group if it exists, otherwise # use 'Main.NewPageTemplate' $EditTemplatesFmt = array('$Group.Template', 'Main.NewPageTemplate');
$EnableDrafts
$EnableDrafts
= 1;
$EnablePublishAttr
, adds a new "publish" authorization level to distinguish editing of drafts from publishing them.
:$EnableDraftAtomicDiff:When set to 1, "publishing" a draft version will clear the "draft" history, leaving a single "diff" between the latest and the previous "published" versions. Note that this will delete the author names, dates and contributions of the intermediate, unpublished versions. ([[Drafts]] need to be enabled, see $EnableDrafts.)
$EnableGUIButtons
$EnableGUIButtons
= 1;
$EnablePostAuthorRequired
:$HandleEditFmt: Like $HandleBrowseFmt, this specifies the entire output format for ?action=edit for a page.
$IsPagePosted
$PageEditFmt
:$PageEditForm: Specifies the edit form for ?action=edit. Defaults to '$SiteGroup.EditForm'.
$ROEPatterns
:$ROSPatterns: With this array you can add patterns as ''key'' and set a text ''value'' which will replace it when the edited page is posted (as signaled by $EnablePost). It is not replaced when the page is loaded into the editform nor when a preview is done, but it is replaced only when the page is saved. See Cookbook:ROSPatterns for examples.
Categories: PmWiki Developer