< Debug Variables | Variables | I18n Variables >
To set many of the variables below specify them in config.php.
$EnableGUIButtons$EnableGUIButtons = 1;
$EnablePostAuthorRequired$EnableDrafts$EnableDrafts = 1;
$EnablePublishAttr, adds a new "publish" authorization level to distinguish editing of drafts from publishing them.
$DraftSuffix$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
$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)
$DeleteKeyPattern$DeleteKeyPattern = "^\\s*remove\\s*$";
$DeleteKeyPattern = "^\\s*$";
$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');
$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]:)';
$EditFunctions$EditFunctions = array('EditTemplate', 'RestorePage', 'ReplaceOnSave',
'SaveAttributes', 'PostPage', 'PostRecentChanges', 'AutoCreateTargets', 'PreviewPage');
$ROEPatterns$ROSPatterns$IsPagePosted$PageEditFmt$PageEditForm$SiteGroup.EditForm'.
$HandleEditFmt$EditRedirectFmt# redirect to Main.HomePage
$EditRedirectFmt = 'Main.HomePage';
# redirect to HomePage of current group
$EditRedirectFmt = '{$Group}.HomePage';
< 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.
| | |
© 2006 - 2026 by Active Image - All Rights Reserved | | | Site Map | | | | |
The information contained within ActiveImage.ca is for educational purposes. It is here to help you made informed decisions about your fitness and health. It is not medical advice and is not intended to replace the advice or attention of health-care professionals. Please consult your doctor before beginning or making changes to your diet, exercise program, for diagnosis and treatment of illness and injuries, and for advice regarding medications and supplements.
In no way will Active Image or any persons associated with Active Image be held responsible for any injuries or problems that may occur due to the use of this website or the advice contained within. Active Image will not be held responsible for the conduct of any companies and websites recommended within this site.