Page MenuHomePhabricator

[1.35 regression] can no longer disable the toolbox
Closed, InvalidPublic


In 1.34 I can disable the toolbox in the sidebar by editing MediaWiki:Sidebar like so:

* navigation
** mainpage|mainpage-description
** recentchanges-url|recentchanges
** randompage-url|randompage
** helppage|help-mediawiki

In 1.35 and current master, the toolbox appears to be mandatory and is always outputted.

I don't think this was intended consequence.

This impacts all skins.

Event Timeline

I stand corrected. This was not possible in 1.34, so this is not a regression.

The toolbox can only be disabled in a hook or via CSS as it is populated by extensions.

Historically the TOOLBOX has shown on despite being absent in

Is there any to control if I want to show the Toolbox or not? Can you please update the Sidebar doc on the mediawiki so that others can use it for their own purpose. For example I might want to show the Toolbar only for the logged in users. how can i do that?

On a site level you can do. although this may remove links in important UIs:

$wgHooks['SidebarBeforeOutput'][] = function ( $skin, &$bar ) {
	unset( $bar['TOOLBOX']);

Skins are also free to run the above line of code to not support toolbox rendering without the hook. You can access the $user from $skin.