Extension:GroupsSidebar
From MediaWiki.org
|
Release status: experimental |
|||
|---|---|---|---|
| Implementation | User interface | ||
| Description | Allows to add sidebar elements for specific user groups | ||
| Author(s) | churchofemacs (Church of emacsTalk) | ||
| Last Version | 0.1 (2009-11-18) | ||
| MediaWiki | 1.16a (r59215) | ||
| License | GPLv3 | ||
| Download | Download snapshot |
||
|
|||
|
|||
|
check usage (experimental) |
|||
NOTE: This extension requires 1.16a (r59215) – unless you use SVN for your Wiki, this Extension will not work for you.
If you have usergroups and would like to add sidebar elements just for usergroup, you can use this extension.
[edit] Installation & Usage
Download the extension from SVN and place it in MediaWiki's extensions folder. You have to edit your LocalSettings.php. Add at the end of the file the following text:
# Use Extension:GroupsSidebar require_once("$IP/extensions/GroupsSidebar/GroupsSidebar.php"); # Extension:GroupsSidebar configuration $wgGroupsSidebar['sysop'] = 'sysop'; $wgGroupsSidebar['user'] = 'user'; $wgGroupsSidebar['*'] = 'all';
Of course, you should set $wgGroupsSidebar according to your needs. The syntax is the following: $wgGroupsSidebar['<user group>'] = '<part of resulting page title>';. <part of resulting page title> will be appended to "MediaWiki:Sidebar-", so if you choose "sysop" as your suffix, your Sidebar element should be placed in MediaWiki:Sidebar-admin. You can use the same syntax and features as on MediaWiki:Sidebar.