PmWiki: OtherVariables

<< UploadVariables | Variables | MailPosts >>

The variables listed on this page are miscellaneous variables that haven't yet been classified into other more appropriate pages.

$GroupNamePattern
The regular expression pattern used for valid WikiGroup? name specifications. Defaults to allowing any group name beginning with an uppercase letter, but can be set to limit the valid group names (see Cookbook:LimitWikiGroups).

$SearchExcludePatterns
An array of page name patterns to be excluded from search results. See Cookbook:SearchExcludePages.
        # exclude PmWiki.* pages from search results
        $SearchExcludePatterns[] = '/^PmWiki\\./';
        # exclude RecentChanges pages from search results
        $SearchExcludePatterns[] = '/\\.(All)?RecentChanges$/';

$IncludeBadAnchorFmt
Format string to be used when an [[include:SomePage#start#end]] directive refers to an anchor that doesn't exist in SomePage.

$GroupHeaderFmt
$GroupFooterFmt
Variables that define the names of the pages to be added as a header or footer to the current page.
        # defaults
        $GroupHeaderFmt = '$Group.GroupHeader';
        $GroupFooterFmt = '$Group.GroupFooter';
        # cause all pages to share a common footer
        $GroupFooterFmt = 'Main.CommonFooter';

$GroupPrintHeaderFmt
$GroupPrintFooterFmt
Variables that define the names of the pages to be added as a header or footer to the current page when ?action=print is selected.
        # defaults
        $GroupPrintHeaderFmt = '$Group.GroupPrintHeader';
        $GroupPrintFooterFmt = '$Group.GroupPrintFooter';
        # set print headers and footers same as browse
        $GroupPrintHeaderFmt = $GroupHeaderFmt;
        $GroupPrintFooterFmt = $GroupFooterFmt;

$TableAttr
Attributes added to the <table> HTML tags generated by ||-table markup (see SimpleTables). An author normally sets this value by using ||-markup with no closing || (SimpleTables2), but a WikiAdministrator can use this variable to set the default for tables.
        # make ||-tables 100% width by default
        $TableAttr = "width='100%'";

$TableCellAttr
Attributes added to the <td> HTML tags generated by ||-table markup. Defaults to "valign='top'";
        $TableCellAttr = "valign='center'";

$FarmD
In a WikiFarm, the directory that contains the main installation of pmwiki.php.

$FarmPubDirUrl
The URL to be used for accessing the pub/ directory in a WikiFarm. Normally this has to be set by the farm's administrator in a local/farmconfig.php file, as there's not an easy way for PmWiki to automatically determine this location.

本頁更新於 2004 年 05 月 28 日,08:26 AM