Summary: How to change the Main (startup) group
Maintainer: PRZ
Categories: Administration


How can I change the Main group (startup group) ?


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
As of 2.0.beta44, the above pages are no longer in the 'Main' group, so much of this recipe no longer applies. --Pm

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 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


  • PRZ October 16, 2004, at 06:17 AM


See discussion at MainGroupChange-Talk