|
|
PmWiki /
LayoutVariables<< Basic Variables | PmWiki.Variables | Path Variables >> Variable substitutions in the skin template are all managed by the FmtPageName() function from pmwiki.php. Pmwiki variable substitutions available on pages are managed by the substitutions from stdmarkup.php or superseded in local/config files.
For example, if you want to specify a logo for all the pages of your wiki (a png image for Firefox (and others...), an ico for Internet Explorer):
$HTMLHeaderFmt['$PageUrl'] =
'<link rel="alternate" type="application/rss+xml" title="Rss All recent Changes"
href=""http://your/wiki/path/pmwiki.php/Site/
AllRecentChanges?action=rss&order=-time&count=0&list=normal" />'
Another example, if you want to get the rss notification on some browsers (the rss icon in firefox for instance):
$HTMLHeaderFmt['$PageUrl'] =
'<link href="http://your/wiki/path/to/your/logo/logo.png" type="image/png" rel="icon" />
<link href="http://your/wiki/path/to/your/logo/logo.ico" type="image/x-icon" rel="shortcut icon" />'
The format can be specified in your config.php using the following:
$RecentChangesFmt['$SiteGroup.AllRecentChanges'] =
'* [[$Group.$Name]] . . . $CurrentTime $[by] $AuthorLink: [=$ChangeSummary=]';
$RecentChangesFmt['$Group.RecentChanges'] =
'* [[$Group/$Name]] . . . $CurrentTime $[by] $AuthorLink: [=$ChangeSummary=]';
Note that changes made to the format will only affect new edits. In other words, you will need to edit a page for your new format to be visible. Note also that you need to have two spaces between the page name and the other information about the edit.
$PageRedirectFmt = '<p><i>redirected from $FullName</p>';
$PageRedirectFmt = '';
See also: Edit Variables |