Extension:HidePageTabs

The MediaWiki HidePageTabs extension allows to:

- hide article tabs, this works despite the user groups or permission. Actions such as edit, move and so on will still be available if manually pointed in the url, but the tab in the page will not be visible. A tipical example for using this functionality is the hiding of the tabs in the Main Page, where you dont want tabs such as edit, move or delete to be visible.

- avoid both edit and edit with form tabs to be visible: it will hide the edit with form for Templates and Forms. For all other pages, if the edit with form will be available it will hide the edit tab. This helps when you want to drive users using forms for the editing of an article

- hide views and actions tabs if the user groups is not allowed to perfoem specific actions on the article category. This works configuring for the a specific group the list of the categories where actions should be checked and the list of possible views or actions that needs to be hidden. The page will be always built according to the wiki wgGroupPermissions configuration, btu tabs will be eventually removed according to the configuration rules.

Usage
For each article the following tabs can be hidden by this extension:

Force Hiding
This is always the first feature processed by the extension, it simply forces the hiding of tabs independently to any other settings (users groups or permission or category based hiding).

For each article that in your mind should never have one of the above listed tabs, you should define in your LocalSettings.php configuration file, after the inclusion of HidePageTabs, a directive specifying the group-> tab to hide, and add it to the $hideTabsPageList array.

The syntax for the directive definition follows the standard PHP array's one.

Example: If you want to always hide for "Main Page" article the "Read", "Edit", "View history" tabs and the "Delete" and "Move" action, you should add the following line after the inclusion of HidePageTabs extension:

$hideTabsPageList['Main Page'][views] = array('view','edit','history'); $hideTabsPageList['Main Page'][actions] = array('delete', 'move');