Extension:CategoryControl2

Category:Extensions without an imageCategory:Extensions without a compatibility policyCategory:Creative Commons licensed extensions
MediaWiki extensions manual
CategoryControl
Release status: stableCategory:Stable extensions
Implementation User rights Category:User rights extensions
Description Access control via group and category permissions.
Author(s) JLTRYtalk
Latest version 1.0.2
MediaWiki 1.34+Category:Extensions with manual MediaWiki version
License Creative Commons Attribution NonCommercial Share Alike 3.0
Download GitHub release v1.0.2Category:Extensions in GitHub version control
Translate the CategoryControl2 extension
Category:All extensions

The CategoryControl2 extension is meant to provide a very simple and flexible level of Per-Page Access Control by utilizing Categories and usergroups as the control method. It was based on CategoryControl extension (Kevin Kragenbrink, II) that is archived

Usage

Follow the Installation instructions below. Articles to be locked down should be added to a Category that has been specified in the $wgCategoryPermissions array. Users can then be added to the allowed groups using the standard mediawiki user rights management.

Download instructions

Please cut and paste the code found in GitHub release v1.0.2 and place it in $IP/extensions/CategoryControl2/CategoryControl.php.

$IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php .

Installation

To install this extension, add the following to LocalSettings.php:

wfLoadExtension( 'CategoryControl2');

Configuration parameters

The $wgCategoryPermissions variable is used to define permissions in groups for each category and action. If no permissions are defined for a category and action, then permission handling falls back to the standard $wgGroupPermissions.

$wgCategoryPermissions['category']['*'][] = 'sysop'; // Sysops can do anything they want with this category.
$wgCategoryPermissions['category']['*'][] = 'bureaucrat'; // Bureaucrats can do anything they want with this category.
$wgCategoryPermissions['category']['read'] = array( 'newgroup', 'othergroup' ); // Users who are in both NewGroup and OtherGroup can read pages in this category.
Category:All extensions Category:Creative Commons licensed extensions Category:Extensions in GitHub version control Category:Extensions with manual MediaWiki version Category:Extensions without a compatibility policy Category:Extensions without an image Category:GetUserPermissionsErrors extensions Category:Stable extensions Category:User rights extensions