Jump to content

Extension:CategoryControl2

From mediawiki.org
This page is a translated version of the page Extension:CategoryControl2 and the translation is 40% complete.
MediaWiki 拡張機能マニュアル
CategoryControl
リリースの状態: 安定
実装 利用者権限
説明 Access control via group and category permissions.
作者 JLTRYトーク
最新バージョン 1.0.2
MediaWiki 1.34+
ライセンス クリエイティブ・コモンズ 表示-非営利-継承 3.0
ダウンロード GitHub release v1.0.2
CategoryControl2 拡張機能の翻訳にご協力ください

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

使用法

Follow the Installation instructions below. Article s 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 .

ダウンロード手順

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 .

インストール

この拡張機能をインストールするには、以下を LocalSettings.php に追加してください:

wfLoadExtension( 'CategoryControl2');

構成パラメータ

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.