|
PmWiki /
GroupHeadersauthors (intermediate)
Every WikiGroup can have GroupHeader and GroupFooter pages that contain markup that should be included at the beginning or end of each page within the group. This feature is useful for:
To create a group header, just create a new page called The default GroupHeader or GroupFooter can be suppressed on an individual page (such as a group's HomePage) by using the If a generic GroupHeader is used in one wikigroup (say, the Site wikigroup), then the code can be easily duplicated in the GroupHeader of any other group by using
If you want a header or footer to appear when you print a page (action print), simply create a page called How do I set one header for all pages/groups? The header for each page is controlled by the $GroupHeaderFmt = '(:include {$SiteGroup}.SiteHeader basepage={*$FullName}:)(:nl:)' . $GroupHeaderFmt; Note that single quotes must be used so that Any form of markup is valid in $GroupHeaderFmt .= "Global markup text here.";
Would this then work for site footers? $GroupFooterFmt = '(:include {$SiteGroup}.SiteFooter basepage={*$FullName}:)(:nl:)' . $GroupFooterFmt;
This page may have a more recent version on pmwiki.org: PmWiki:GroupHeaders, and a talk page: PmWiki:GroupHeaders-Talk. |