<< Link Variables | PmWiki.Variables | Upload Variables >>
# turn on graphical edit buttons $EnableGUIButtons = 1;
$EnablePostAuthorRequired
# require authors to provide a name
$EnablePostAuthorRequired
= 1;
$DeleteKeyPattern
# change delete word to »remove«$DeleteKeyPattern
= "^\\s*remove\\s*$"; # delete any page with no visible text, i.e., empty$DeleteKeyPattern
= "^\\s*$";
# 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');
$DefaultPageTextFmt
$DefaultPageTextFmt
= 'Page $Name does not exist';
$EditFunctions
$EditFunctions = array('EditTemplates', 'RestorePage', 'ReplaceOnSave', 'SaveAttributes', 'PostPage', 'PostRecentChanges', 'PreviewPage');
$ROSPatterns
[[test:sometext
with [[special:--sometext
when you save an edited page.
# Replace text on Save (add pattern and replacement to array$ROSPatterns
)$ROSPatterns
["/\\[\\[test:([^\\s$UrlExcludeChars]*)/"] = "[[special:--\$1";