< Layout Variables | Variables | Other Variables >
admins (advanced)
- $EnableLinkPageRelative
- When enabled, causes Pm Wiki to use relative urls for page links instead of absolute urls.
$EnableLinkPageRelative = 1;
$PagePathFmt
- This array lists the order in which Pm Wiki looks for the page that you most likely are attempting to link to. The default is listed below. Look at Cookbook:PagePaths for some ideas.
array('{$Group}.$1','$1.$1'.'$1.{$DefaultName}')
$LinkPageExistsFmt
- The (HTML) string to output for links to already existing wiki pages. Defaults to
\$LinkText
$LinkPageCreateFmt
- The (HTML) string to output for links to non-existent wiki pages. The default is to add a '?' after the link text with a link to the page edit/create form. Defaults to
\$LinkText ?
:$LinkPageCreateSpaceFmt:Same as $Link Page Create Fmt?, but used when the link text has a space in it.
$LinkPageSelfFmt
- The (HTML) string to output for self-referencing links (i.e. links to the page itself). Defaults to
\$LinkText
$UrlLinkFmt
- The (HTML) string to output for URL-links that begin with 'http:', 'ftp:', etc. Defaults to
\$LinkText
Examples of custom formats to allow different styling via classes:
Links to http: standard url links:
$IMapLinkFmt['http:'] = "\$Link Text?";
Links to https: secure pages:
$IMapLinkFmt['https:'] = "\$Link Text?";
Links to Pm Wiki: Inter Map shortcut:
$IMapLinkFmt['PmWiki:'] = "\$Link Text?";
- $InterMapFiles
- An array consisting a list of files and pages containing Inter Map entries to be loaded (see CustomInterMap).
$MakePageNameFunction
- Name of a custom function to replace MakePageName(), which converts strings into valid page names.
- $MakePageNamePatterns: $Make Page Name Patterns? is an array of regular expression replacements that is used to map the page link in a free link such as
[[free link]]
into a page name. Currently the default sequence is -
"/'/" => '', # strip single-quotes "/[^$PageNameChars]+/" => ' ', # convert non-alnums to spaces "/((^|[^-\\w])\\w)/e" => "strtoupper('$1')", # initial caps after spaces "/ /" => '' # strip spaces
- Note that if you change $MakePageNamePatterns, the documentation links may break. This can be fixed by re-setting $Make Page Name Patterns? to the default in local/Pm Wiki.php.
$WikiWordCountMax
- The maximum number of times to convert each Wiki Word encountered on a page. Defaults to 1,000,000. Common settings for this variable are zero (disable Wiki Word links) and one (convert only the first occurrence of each Wiki Word).
$WikiWordCountMax
= 0; # disable Wiki Word links$WikiWordCountMax
= 1; # convert only first Wiki Word
:$WikiWordCount:An array that allows the number of WikiWord conversions to be set on a per-WikiWord basis. The default is to use $Wiki Word Count Max? unless a value is set in this array. By default Pm Wiki sets
to limit the number of conversions of "Pm Wiki".
$WikiWordCount
['Pm Wiki']=1
$WikiWordCount
['PhD']=0; # Don't convert "PhD"$WikiWordCount
['Wiki Word']=5; # Convert Wiki Word 5 times # the following lines keep a page from linking to itself $title = FmtPageName('$Title_',$pagename); $WikiWordCount[$title]=0;
- $EnableRedirectQuiet
- Enable the
quiet=1
parameter for the redirect directive. On publicly edited wikis it is advisable not to enable quiet redirects.
$EnableRedirectQuiet = 0; # disable quiet redirects (default) $EnableRedirectQuiet = 1; # enable quiet redirects
< Layout Variables | Variables | Other Variables >
This page may have a more recent version on pmwiki.org: PmWiki:LinkVariables, and a talk page: PmWiki:LinkVariables-Talk.
D'autres actions ou possibilités :
Imprimer la page - Créer le fichier PDF - Consulter les statistiques - Parcourir le plan du site - Suivre les changements de pages OU du siteConsulter la page - Editer cette page - Parcourir l'historique - Joindre un fichier - Se connecter/Déconnecter -