How-Tos: Difference between revisions

From Tweeki
Jump to: navigation, search
Line 3: Line 3:
=== Show navigation or parts of it only for logged in users ===
=== Show navigation or parts of it only for logged in users ===


add the [[Navigation|navigational sections and elements]] you want to hide for anonymous users to the <code>$wgTweekiSkinHideAnon</code> array in LocalSettings.php, e.g.
Just add the [[Navigation|navigational sections and elements]] you want to hide for anonymous users to the <code>$wgTweekiSkinHideAnon</code> array in LocalSettings.php, e.g.


  $wgTweekiSkinHideAnon = array( 'navbar' );
  $wgTweekiSkinHideAnon = array( 'navbar' );

Revision as of 11:41, 10 February 2015

Navigation

Show navigation or parts of it only for logged in users

Just add the navigational sections and elements you want to hide for anonymous users to the $wgTweekiSkinHideAnon array in LocalSettings.php, e.g.

$wgTweekiSkinHideAnon = array( 'navbar' );