Search:

Latest Publishes

Popular

Tools

New Player Guide

Training room

Pandora Lore

Pandora's Unique Items

Collection Quests

pmwiki edit

edit SideBar

PmWikiJa / AllGroupHeader

Question

How do I create a Site.AllGroupHeader page which can contain styles and content for all pages in all groups?

Answer

If the group contains a wiki page called GroupHeader, that page will be included first in every group. Pmwiki achieves this by use of the variable $GroupHeaderFmt. This variable can be redefined in local/config.php to have a page Site.AllGroupHeader at the top of all wiki pages in all groups through the following:

 
$GroupHeaderFmt = '(:include $SiteGroup.AllGroupHeader:)(:nl:)'.
		  '(:include $Group.GroupHeader:)(:nl:)';

The variable $SiteGroup usually refers to Site/, so unless you change it, the page that defines the site wide header will be Site.AllGroupHeader. See Cookbook.MainGroupChange for more details about changing the default group.

Notes and Comments

  • This recipe was last tested on PmWiki version:
  • This recipe requires at least PmWiki version: 2.0.beta44

 
$GroupFooterFmt = '(:include $SiteGroup.AllGroupFooter:)(:nl:)'.
		  '(:include $Group.GroupFooter:)(:nl:)';

See Also

Contributors

-- Pm, Christian, Hans


Category: Layout


Page last modified on December 23, 2021, at 12:48 AM