[pmwiki-users] Apologies (was: AllGroupHeader)

Hans design at flutesong.net
Thu Jun 2 03:55:46 CDT 2005


Thursday, June 2, 2005, 7:27:55 AM, chr wrote:
> And another question... what's the variable used to refer to the "main"
> group? For instance, I typically prefer using Site.AllRecentChanges etc
> instead of Main.AllRecentChanges, and the name of the "main" group is
> probarly in some variable that should be used in the example. What I'd
> like is the name of the variable to put in this code snippet

>         $GroupHeaderFmt =
>           '[@include
> $VariableReferringToMainGroup.AllGroupHeader@][@nl@]'.
>           '[@include $Group.GroupHeader@][@nl@]';

redefine 'Main' group  to 'Site':

$DefaultGroup = 'Site';

but you need to redefine also:

$RecentChangesFmt = array(
  'Site.AllRecentChanges' =>
    '* [[$Group.$Name]]  . . . $CurrentTime $[by] $AuthorLink',
  '$Group.RecentChanges' =>
    '* [[$Group/$Name]]  . . . $CurrentTime $[by] $AuthorLink');

see also:
http://www.pmwiki.org/wiki/Cookbook/MainGroupChange


Best, 
~Hans                           




More information about the pmwiki-users mailing list