< Debug Variables | Variables | I18n Variables >
To set many of the variables below specify them in config.php.
$AutoCreate
$AutoCreate[REGEXP] = PAGE_PARAMETERS;
where 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);
will create a blank page with a current creation time for any missing Category page.
$DefaultPageTextFmt
$DefaultPageTextFmt = '(:include $[{$SiteGroup}.PageNotFound]:)';
$DeleteKeyPattern$DeleteKeyPattern = "^\\s*remove\\s*$";
$DeleteKeyPattern = "^\\s*$";
$DiffKeepDays$DiffKeepDays variable sets the minimum length of time that a page's revision history is kept. By default it is set to 3650 days, or a little less than ten years. You can change this value in a customization file to be something smaller, e.g.:
$DiffKeepDays = 30; # keep revisions at least 30 days
If you want to suppress a page's revision history, you can insert into a customization file
$DiffKeepDays = $DiffKeepNum = -1; # suppress revision history
Note that a specific page revision isn't removed from the page until the first edit after the time specified by $DiffKeepDays has elapsed. Thus, it's still possible for some pages to have revisions older than $DiffKeepDays -- such revisions will be removed the next time those pages are edited.
$DiffKeepNum$DiffKeepDays. It prevents lost history of pages that are older, but have few changes.
$DiffKeepNum = 50; # keep at least 50 revisions (default is 20)
To suppress page's revision history with $DiffKeepNum = -1 see $DiffKeepDays above.
$DraftActionsPattern
$DraftActionsPattern = 'edit|pmform|translate';
# Enable drafts for actions 'edit', 'pmform' and 'translate'.
$DraftSuffix$EditFunctions
$EditFunctions = array('EditTemplate', 'RestorePage', 'ReplaceOnSave',
'SaveAttributes', 'PostPage', 'PostRecentChanges', 'AutoCreateTargets', 'PreviewPage');
Many recipes manipulate this array, so it is recommended, instead of redefining the complete array to add your custom functions, to use functions like array_unshift(), array_push() and array_splice().
$EditRedirectFmt$EditRedirectFmt = 'Main.HomePage';
$EditRedirectFmt = '{$Group}.HomePage';
$EditTemplatesFmt$EditTemplatesFmt = 'Main.NewPageTemplate';
$EditTemplatesFmt = '$Group.Template';
$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$EnableDrafts.)
$EnableGUIButtons$EnableGUIButtons = 1;
$EnablePostAuthorRequired$EnablePostAuthorRequired = 1;
$EnableRevUserAgent$EnableRevUserAgent = 1;
$GUIButtons$HandleEditFmt?action=edit for a page.
$IsPagePosted$PageEditFmt$PageEditForm?action=edit. Defaults to '$SiteGroup.EditForm'.
$ROEPatterns$ROSPatterns$EnableROSEscape$ROEPatterns and $ROSPatterns replacements will skip escaped text (surrounded by [=...=] or [@...@]). If not set, or if set to 0, the replacements will happen even inside escaped text.
Categories: PmWiki Developer
< Debug Variables | Variables | I18n Variables >
This page may have a more recent version on pmwiki.org: PmWiki:EditVariables, and a talk page: PmWiki:EditVariables-Talk.
Top ↑[^#^]
"Ha! I set alight to the petrol in the workshop to burn it to the ground with the Werewolf trapped inside"
"Congratulations it's incinerated, along with the power generator, the bullet press, the gunpowder, your transport out of here and all the evidence you have collected...smart move"
- Matt the GM explains to Mike the error of his ways in Blood Brothers.