|
Cookbook /
AllGroupHeaderSummary: How to create a page that appears as a header (or footer) for all pages in all groups
Version: 1
Status: Stable
Prerequisites: pmwiki-2.0
Maintainer:
Discussion: AllGroupHeader-Talk
Categories: Layout
Votes:
QuestionHow do I create a Site.AllGroupHeader page which can contain styles and content for all pages in all groups? AnswerIf the group contains a wiki page called
$GroupHeaderFmt =
'(:include {$SiteGroup}.AllGroupHeader:)(:nl:)'
.'(:include {$Group}.GroupHeader:)(:nl:)';
The variable Alternatively you can have a site-wide header as a default that can be overridden by a $Group.GroupHeader page. You can set:
$GroupHeaderFmt =
'(:include {$Group}.GroupHeader {$SiteGroup}.SiteHeader:)(:nl:)';
which uses the group's GroupHeader if it exists, otherwise it uses Site.SideHeader. See Also
Contributors-- Pm, Christian, Hans CommentsSee discussion at AllGroupHeader-Talk User notes +1: If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki. |