Recent Changes - Search:

add Cookbook page







Visitor's book Site map pmwiki-2.2.127

Wiki Footer

Summary: Replace the PmWiki skin template page footer with Wiki page footer
Version: 1.0
Prerequisites: None
Status: Mature
Maintainer: Simon

Questions answered by this recipe


Why is the PmWiki default skin page footer part of the template rather than a wiki page?

How do I make a page footer that is a PmWiki page like the side bar?

Answer: Follow the instructions below


Change the PmWiki skin template (.tmpl) file to use a wiki page as footer. This may apply to other skin? template files as well, but some use already a Wiki page for the footer.

1: change the PmWiki skin template

Replace the lines close to the end of the template file (eg pmwiki.tmpl)

<div id='wikifoot'>
  <div class='footnav'>
    <a rel="nofollow" href='{$PageUrl}?action=edit'>$[Edit]</a> -
    <a rel="nofollow" href='{$PageUrl}?action=diff'>$[History]</a> -
    <a rel="nofollow" href='{$PageUrl}?action=print' target='_blank'>$[Print]</a> -
    <a href='{$ScriptUrl}/$[{$Group}/RecentChanges]'>$[Recent Changes]</a> -
    <a href='{$ScriptUrl}/$[{$SiteGroup}/Search]'>$[Search]</a></div>
  <div class='lastmod'>$[Page last modified on {$LastModified}]</div></div>

with the lines

<div id='wikifoot'>
  <!--wiki: {$DefaultGroup}.Footer {$Group}.Footer {$SiteGroup}.Footer-->

2: create the page Site.Footer

Use the following as the basis for your site page footer

(:Summary: Website page footer:)
(:div class='lastmod' style="font-size:smaller;":)
$[Page last modified on {*$LastModified}]
(:div class='footnav' rel='nofollow' style="font-size:smaller;":)
%rel='nofollow' class=edit    accesskey=$[ak_edit]%     [[{*$FullName}?action=edit  | $[Edit] ]] -
%rel='nofollow' class=diff    accesskey=$[ak_history]%  [[{*$FullName}?action=diff  | $[History] ]] -
%rel='nofollow' class=print   accesskey='$[ak_print]'%  [[{*$FullName}?action=print | $[Print] ]] -
%rel='nofollow' class=changes accesskey='$[ak_recentchanges]'% [[{*$Group}/RecentChanges | $[Recent Changes] ]] -
%rel='nofollow' class=search  accesskey='$[ak_search]'% [[{$SiteGroup}/Search | $[Search] ]]

This will give the same result as the standard PmWiki page footer.


This footer first shows any footer in the default group ($DefaultGroup) and alternatively the footer from the site group ($SiteGroup}.

This recipe provides an obvious improvement to the flexibility of PmWiki by making the page footer customisable? in a similar way to the side bar.

Release notes

If the recipe has multiple releases, then release notes can be placed here. Note that it's often easier for people to work with "release dates" instead of "version numbers".

See also



This space is for User-contributed commentary and notes. Please include your name and a date (eg 2007-05-19) along with your comment. Optional alternative: create a new page with a name like "ThisRecipe-Talk" (e.g. PmCalendar-Talk).

Page last modified on 2012 Oct 02 14:57

Edit - History - Recent Changes - WikiHelp - Search - email page as link -> mailto:?Subject=KiwiWiki: Wiki Footer&Body=From KiwiWiki: Wiki Footer (//kiwiwiki [period] nz/pmwiki/pmwiki [period] php/Cookbook/WikiFooter) - Website page footer