Recent Changes - Search:

Main

AdaWikiRing

Skin

RSS Feeds

SourceForge.net Logo


Edit Sidebar

All Group Header

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

Edit - History - Print - Recent Changes - Search
Page last modified on December 14, 2005, at 12:22 AM