Custom Namespaces
by Legault, Phillip [ITSUS]
I want to create a namespace for documentation that I do not want searchable and would like it secured.
I could get 1 to work and it is searchable and not secure 2 does not seem to work
[1]
$wgExtraNamespaces[500] = "Foo";
$wgExtraNamespaces[501] = "Foo_talk";
[2]
define("NS_FOO", 500);
define("NS_FOO_TALK", 501);
$wgExtraNamespaces[NS_FOO] = "Foo";
$wgExtraNamespaces[NS_FOO_TALK] = "Foo_talk"; // underscore required
$wgNamespaceProtection[NS_FOO] = array( 'editfoo' ); //permission "editfoo" required to edit the foo namespace
$wgNamespacesWithSubpages[NS_FOO] = true; //subpages enabled for the foo namespace
$wgGroupPermissions['sysop']['editfoo'] = true; //permission "editfoo" granted to users in the "sysop" group
Phil