[pmwiki-users] Sitewide headers/footers

Patrick R. Michaud pmichaud at pobox.com
Sun Apr 16 09:07:23 CDT 2006


On Mon, Apr 17, 2006 at 01:56:50AM +1200, Robin Sheat wrote:
> Hi, is there a way to set a site-wide GroupHeader/GoupFooter? 
> 
> If not, could I perhaps suggest the following:
> If a page Site.SiteHeader exists, and the group doesn't have its own 
> GroupHeader already, and the page doesn't have the (:nogroupheader:) tag, 
> then the site one is included. (same for footers)
> [...]
> If there is a way to do site-wide headers/footers, then let me know and 
> I'll add it to the PmWiki documentation in the section that talks about 
> GroupHeaders.

It's sort of there already, although not described as obviously
as perhaps it could be.

In particular, you can set:

    $GroupHeaderFmt = 
      '(:include {$Group}.GroupHeader {$SiteGroup}.SiteHeader:)(:nl:)';

which uses the group's GroupHeader if it exists, otherwise it
uses Site.SideHeader.

Pm




More information about the pmwiki-users mailing list