You are viewing this site in administrative mode. Click here to view in regular mode.
print Short URL for this page:[close]

Press Ctrl+C to copy
bookmark feedback/comment

administrators (basic)

This page documents the PHP variables available in PmWiki for local customizations. Much of this documentation is still incomplete but people are working on it now. Feel free to add placeholders for variables you want to have documented if you don't know what the variable does.

Note: Do not confuse these PHP variables with Page Variables and Page TextVariables being used in page markup.

The variables documentation is divided into several pages:

The following functions are also controlled by several variables:

  • Blocklist - Blocking IP addresses, phrases, and expressions to counteract spam and vandalism.
  • Notify - Allows a site administrator to configure PmWiki to send email messages whenever pages are changed on the wiki site
  • Basic Variables to provide circular trail

An complete index of documented PHP variables is given below.

In general, variables with names ending in 'Fmt' (such as $PageLayoutFmt) have their values processed for $-variable substitutions prior to being output. Thus strings such as {$Name} and {$PageUrl} are replaced with the name and URL of the page when the string is printed.

Note: The automatic variable index and link generation is done by scripts/vardoc.php using $VarPagesFmt to find the pages containing trails of pages with the variable documentation.

There is a slight discrepancy between index generation and link generation: The index generation finds lines starting with a colon followed by "$" and an uppercase word. In contrast, the automatic link generation works only with WikiWords ($WikiWordPattern) preceded by "$". Therefore all "non WikiWord" variables are shown as link only in the list below, but not elsewhere in PmWiki, as $Author, $Version and $XL.

See Also

  • Functions - How some of the functions in pmwiki.php work

List of documented PHP variables

VariableDocumented in
$ActionSkinLayoutVariables
$AsSpacedFunctionBasicVariables
$AuthIdBasicVariables
$AuthLDAPBindDNSecurityVariables
$AuthLDAPBindPasswordSecurityVariables
$AuthorGroupBasicVariables
$AuthPwBasicVariables
$AuthUserFunctionsSecurityVariables
$AutoCreateEditVariables
$BaseNamePatternsBasicVariables
$BlockedMessagesFmtBlocklist
$BlocklistActionsBlocklist
$BlocklistDownloadBlocklist
$BlocklistDownloadFmtBlocklist
$BlocklistDownloadRefreshBlocklist
$BlocklistMessageFmtBlocklist
$BlocklistPagesBlocklist
$CategoryGroupBasicVariables
$CookiePrefixBasicVariables
$DefaultGroupBasicVariables
$DefaultNameBasicVariables
$DefaultPageBasicVariables
$DefaultPageTextFmtEditVariables
$DefaultPasswordsSecurityVariables
$DeleteKeyPatternEditVariables
$DiffKeepDaysEditVariables
$DraftRecentChangesFmtLayoutVariables
$DraftSuffixEditVariables
$EditFunctionsEditVariables
$EditRedirectFmtEditVariables
$EditTemplatesFmtEditVariables
$EnableBlocklistBlocklist
$EnableBlocklistImmediateBlocklist
$EnableDiagDebugVariables
$EnableDirectDownloadUploadVariables
$EnableDraftsEditVariables
$EnableFixedUrlRedirectLayoutVariables
$EnableGUIButtonsEditVariables
$EnableIMSCachingDebugVariables
$EnableLinkPageRelativeLinkVariables
$EnableLocalConfigBasicVariables
$EnableNotifyNotify
$EnableNotifySubjectEncodeNotify
$EnablePageIndexPagelistVariables
$EnablePageListProtectPagelistVariables
$EnablePathInfoLayoutVariables
$EnablePGCustBasicVariables
$EnablePostAttrClearSessionSecurityVariables
$EnablePostAuthorRequiredEditVariables
$EnablePublishAttrSecurityVariables
$EnableRedirectBasicVariables
$EnableRedirectQuietLinkVariables
$EnableSessionPasswordsSecurityVariables
$EnableStopWatchDebugVariables
$EnableUploadUploadVariables
$EnableUploadGroupAuthUploadVariables
$EnableUploadOverwriteUploadVariables
$EnableUploadVersionsUploadVariables
$EnableWhyBlockedBlocklist
$EnableWikiWordsBasicVariables
$EnableWSPreBasicVariables
$FarmDPathVariables
$FarmPubDirUrlPathVariables
$FmtPOtherVariables
$FmtPVOtherVariables
$FmtVOtherVariables
$FPLTemplatePageFmtPagelistVariables
$FTimeFmtBasicVariables
$GroupFooterFmtLayoutVariables
$GroupHeaderFmtLayoutVariables
$GroupPatternBasicVariables
$GroupPrintFooterFmtLayoutVariables
$GroupPrintHeaderFmtLayoutVariables
$HandleAuthSecurityVariables
$HandleEditFmtEditVariables
$HTMLFooterFmtLayoutVariables
$HTMLHeaderFmtLayoutVariables
$HTMLStylesFmtLayoutVariables
$HTMLVSpaceLayoutVariables
$IMapLinkFmtLinkVariables
$InterMapFilesLinkVariables
$IsPagePostedEditVariables
$LinkPageCreateFmtLinkVariables
$LinkPageCreateSpaceFmtLinkVariables
$LinkPageExistsFmtLinkVariables
$LinkPageSelfFmtLinkVariables
$LinkUploadCreateFmtUploadVariables
$LinkWikiWordsBasicVariables
$LocalDirPathVariables
$LogoutCookiesBasicVariables
$LogoutRedirectFmtBasicVariables
$MakePageNameFunctionLinkVariables
$MakePageNamePatternsLinkVariables
$MakeUploadNamePatternsUploadVariables
$MaxIncludesLayoutVariables
$MaxPageTextVarsOtherVariables
$MessagesFmtLayoutVariables
$MetaRobotsLayoutVariables
$NamePatternBasicVariables
$NotifyBodyFmtNotify
$NotifyDelayNotify
$NotifyFileNotify
$NotifyFromNotify
$NotifyHeadersNotify
$NotifyItemFmtNotify
$NotifyListNotify
$NotifyListPageFmtNotify
$NotifyParametersNotify
$NotifySquelchNotify
$NotifySubjectFmtNotify
$NotifyTimeFmtNotify
$PageAttributesSecurityVariables
$PageCSSListFmtPathVariables
$PageEditFmtEditVariables
$PageEditFormEditVariables
$PageIndexFilePagelistVariables
$PageListCacheDirPagelistVariables
$PageLogoUrlLayoutVariables
$PageNotFoundHeaderFmtLayoutVariables
$PagePathFmtLinkVariables
$PageRedirectFmtLayoutVariables
$PageSearchFormPagelistVariables
$PubDirUrlPathVariables
$RCLinesMaxLayoutVariables
$RecentChangesFmtLayoutVariables
$RecentUploadsFmtLayoutVariables
$ROEPatternsEditVariables
$ROSPatternsEditVariables
$ScriptUrlPathVariables
$SearchBoxOptPagelistVariables
$SearchPatternsPagelistVariables
$SessionDecodeSecurityVariables
$SessionEncodeSecurityVariables
$SiteAdminGroupBasicVariables
$SiteGroupBasicVariables
$SkinDirUrlPathVariables
$SkinLibDirsLayoutVariables
$SpaceWikiWordsBasicVariables
$TableCellAttrFmtLayoutVariables
$TableRowAttrFmtLayoutVariables
$TableRowIndexMaxLayoutVariables
$TimeFmtBasicVariables
$UploadDirUploadVariables
$UploadDirQuotaUploadVariables
$UploadMaxSizeUploadVariables
$UploadNameCharsUploadVariables
$UploadPrefixFmtUploadVariables
$UploadPrefixQuotaUploadVariables
$UploadUrlFmtUploadVariables
$UrlLinkFmtLinkVariables
$VarPagesFmtI18nVariables
$VersionBasicVariables
$VersionNumBasicVariables
$WikiDirPathVariables
$WikiLibDirsPathVariables
$WikiStyleLayoutVariables
$WikiTitleLayoutVariables
$WikiWordCountLinkVariables
$WikiWordCountMaxLinkVariables
$WikiWordPatternBasicVariables
$WorkDirPathVariables
$XLI18nVariables
$XLLangsI18nVariables


This page may have a more recent version on pmwiki.org: PmWiki:Variables, and a talk page: PmWiki:Variables-Talk.

Page last modified on October 05, 2009, at 04:17 AM EST.
(cc) Subhrajit Bhattacharya