MainGroupChange
Question
How can I change the Main group (startup group) ?
Answer
To create a new startup group, you can use the variable
$DefaultGroup
= 'MyMainGroup'; #in 'local/config.php' file
But the 'Main' group shall stay because some pages remains attached to the 'Main' Group:
- Main.SideBar
- Main.SearchWiki
- Main.AllRecentChanges
- Main.AllRecentUploads (not yet operational)
- Main.ApprovedUrls
There is an occurrence of the 'Main' group in the templates, for SideBar call. Create first the new 'SideBar', next the call will be modified by modifying the template (*.tmpl) (see also SideBarNameChange).
If you have international page, the XLPage (see http://www.pmwiki.org/wiki/Localization/XLPageTemplate) takes care of the 'Main/SearchWiki' page in the lines :
###### page locations 'Main/SearchWiki' => '',
The 'Main.AllRecentChanges' Page name shall be modified by defining the array $RecentChangesFmt
in config.php :
$RecentChangesFmt = array( '$DefaultGroup.AllRecentChanges' => '* [[$Group.$Name]] . . . $CurrentTime $[by] $AuthorLink', '$Group.RecentChanges' => '* [[$Group/$Name]] . . . $CurrentTime $[by] $AuthorLink');
You may also localize the name of the RecentChanges page in the above array at your will.
While the AllRecentUploads is not yet functional (beta 14), we may expect that when it will be, we will have to change it similarly.
The Main.ApprovedUrls page can be changed by setting in local/config.php :
$ApprovedUrlPagesFmt = array('$DefaultGroup.ApprovedUrls');
See also
Contributors
- PRZ October 16, 2004, at 06:17 AM
Comments
See discussion at MainGroupChange-Talk