hengxin
hengxin

Reputation: 1999

How to add pages into white list by categories in MediaWiki?

I am maintaining a private site based on MediaWiki with the following configurations.

$wgGroupPermissions['*']['read']=false;
$wgGroupPermissions['user']['read']=true;

In this case, how should I make pages in some category (e.g., Category:OpenAccess) publicly readable?

The version info is as follows:


The code using Extension:CategoryPermissions below (demonstrated in this example) does not work.

$wgGroupDefaultAllow=true;
$wgGroupPermissions['*']['Category:OpenAccess_read']=true;

Upvotes: 0

Views: 296

Answers (1)

Ethan Mott
Ethan Mott

Reputation: 187

I would try using $wgWhitelistReadRegexp.

Try putting something like this in your LocalSettings.php to whitelist the entire Category namespace:

$wgWhitelistReadRegexp = array("/Category:.*/");

Upvotes: 0

Related Questions