最終更新 - 検索:

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

編集 - 履歴 - 印刷 - 最終更新 - 検索
最終更新時刻2005 年 12 月 14 日,09:22 AM