Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.mrao.cam.ac.uk/projects/OAS/pmwiki/pmwiki.php/PmWiki/EditVariables?action=print
Дата изменения: Unknown Дата индексирования: Sat Mar 1 21:40:02 2014 Кодировка: Поисковые слова: р п п р п р п п р п р п п р п р п р п п р п п р п р п п р п п р п р п п р п c 1999 s4 linear |
< 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.
$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.