< Notify | Variables | Debug Variables >
$BaseNamePatterns
{$BaseName}
PageVariable. The key to the hash is the pattern to be replaced and the value is the replacement string.
# If {$FullName} is "Group.Page-Draft" then {$BaseName} is "Group.Page" $BaseNamePatterns['/-Draft$/'] = ''; # If {$FullName} is "Comments-Group.Page" then {$BaseName} is "Group.Page" $BaseNamePatterns['/^Comments-/'] = '';
$DefaultGroup
$DefaultName
$DefaultPage
$DefaultGroup
.$DefaultName
.
Note: for $DefaultGroup
, $DefaultName
and $DefaultPage
variables to work, they should be defined in the beginning of (farm)config.php, before any call to the function ResolvePageName(). This means, before any script from PmWiki and before any recipe that might be using this function.
$SiteGroup
$SiteAdminGroup
$EnableWSPre
$EnableWSPre = 1; # leading spaces are preformatted text
$EnableWSPre = 0; # leading spaces are normal lines of text
$EnableWSPre = 4; # 4+ spaces are preformatted text
$EnableWikiWords
$LinkWikiWords
(:linkwikiwords:)
and (:nolinkwikiwords:)
directives.
$LinkWikiWords = 1; # turn on WikiWord links
$LinkWikiWords = 0; # disable WikiWord links
$SpaceWikiWords
$AsSpacedFunction
. Note that this value can also be affected by the (:spacewikiwords:)
and (:nospacewikiwords:)
directives.
$SpaceWikiWords = 1; # turn on WikiWord spacing
$SpaceWikiWords = 0; # turn off WikiWord spacing
$AsSpacedFunction
$AsSpacedFunction = '`MyAsSpaced';
$EnablePGCust
$EnablePGCust=0; # turn off per-page/group configs
$EnableLocalConfig
$EnableLocalConfig = 0; # disable PmWiki's local/config
$GroupPattern
# limit groups to Site, SiteAdmin, PmWiki, and `MyGroup
$GroupPattern = '(?:Site|SiteAdmin|PmWiki|`MyGroup)';
$NamePattern
$WikiWordPattern
$EnablePostAuthorRequired
.
$AuthorGroup
$AuthorGroup = 'Users';
$AuthId
SessionAuth($pagename);
if( isset($AuthId) ) { // this person has been authenticated
$AuthPw
SessionAuth($pagename);
if( isset($AuthPw) ) { // this person has entered a password
$TimeFmt
'%B %d, %Y at %I:%M %p'
, which gives dates of the form "September 8, 2005 at 10:57 PM".
$TimeFmt = '%B %d, %Y'; # dates as "September 8, 2005"
$TimeFmt = '%Y-%m-%d'; # dates as "2005-09-08"
$FTimeFmt
$FTimeFmt
is $TimeFmt
. (See Markup Expressions)
$LogoutRedirectFmt
?action=logout
. Defaults to the current page.
$LogoutRedirectFmt = 'Site.Logout'; # ?action=logout target
$LogoutCookies
?action=logout
is invoked.
$CookiePrefix
$CookiePrefix = 'pmwiki_';
# set cookie prefix to 'pmwiki_'
$CookiePrefix = substr($tmp = md5(__FILE__), 0, 5).'_';
$VersionNum
$VersionNum
set to 2001040, as in "2002004".
The first digit is a 2, the next three digits are the major
release number, and the last three digits are the minor release
number. Beta releases use 900-999 for the minor release number.
Thus:
2.1.0 2001000 2.1.1 2001001 ... 2.1.27 2001027 2.2.0-beta1 2001901 2.2.0-beta2 2001902 ... 2.2.0-beta18 2001918 ... 2.2.0 2002000
$EnableRedirect
$EnableRedirect
to zero causes PmWiki to pause and issue a "Redirect to link" message instead. This is sometimes useful when debugging recipes to be able to see the results of actions before page redirections occur.
< Notify | Variables | Debug Variables >
This page may have a more recent version on pmwiki.org: PmWiki:BasicVariables, and a talk page: PmWiki:BasicVariables-Talk.