|
< Debug Variables | Variables | I18n Variables > To set many of the variables below specify them in
# turn on graphical edit buttons
$EnableGUIButtons = 1;
# require authors to provide a name
# turn on draft edits
$EnableDrafts = 1;
A related variable, $EnablePublishAttr, adds a new "publish" authorization level to distinguish editing of drafts from publishing them.
$DiffKeepDays = 30; # keep revisions at least 30 days
$DiffKeepNum = 50; # keep at least 50 revisions (default is 20)
# 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');
See Cookbook:EditTemplates for more information.
$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 = '(:include $[{$SiteGroup}.PageNotFound]:)';
$EditFunctions = array('EditTemplate', 'RestorePage', 'ReplaceOnSave',
'SaveAttributes', 'PostPage', 'PostRecentChanges', 'AutoCreateTargets', 'PreviewPage');
# 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. |
TEI, the conference on tangible, embedded, and embodied interaction, is about HCI, design, interactive art, user experience, tools and technologies, with a strong focus on how computing can bridge atoms and bits into cohesive interactive systems. Sign-up for our low-volume list to get news & updates on TEI'10. The official hash tag of TEI'10 is #teiconf. Use this in your tweets to share with other TEIers. Or, follow our Twitter user, TEI10, to see what we have to say about TEI, in 140 chars or less of course ;-)
|
|
TEI 2010 | About | Register | Program | Supporters | Participation | Venue & Travel | Contact |
|