Tuesday, 7 February 2023

How to hide the sidebar in a mediawiki site when you are not logged in

On my mediawiki site, you need to log in to view and edit pages. But the sidebar is displayed even when you are not logged in. Since there is some confidential information, I would like to show the sidebar only when you are logged in.

Does anyone have an idea? Thanks.

Left grey box should be hidden

1

Right now, I have these restrictions in LocalSettings.php:


$wgWhitelistRead = array( "Spezial:Userlogin", "MediaWiki:Monobook.css", "api.php"); 
$wgGroupPermissions['*']['read'] = false; $wgGroupPermissions['user']['protect'] = true; 
$wgGroupPermissions['user']['edit'] = true; $wgGroupPermissions['*']['createaccount'] = false;


from How to hide the sidebar in a mediawiki site when you are not logged in

No comments:

Post a Comment