chameleon icon indicating copy to clipboard operation
chameleon copied to clipboard

Request to make NavbarHorizontal permission a LocalSettings configuration

Open revansx opened this issue 11 months ago • 4 comments

I use the Clean.xml (chameleon v4.2.1) as the default skin on a private wiki, however, because of [1] unregistered users who aren't yet logged-in don't get to see the horizontal Navbar at the top and - as a result - are not shown the Special:Login link in the top-right .. it only shows for registered users.

I have been able to obtain the desired behavior by deleting line 29 in layouts/cean.xml [1].

<modification type="ShowOnlyFor" permission="edit"/>

Would it be possible to add a new configuration variable in LocalSettings like:

$egChameleonAlwaysShowNavbar = 'true';

that would wrap that line in an if-then statement making this behavior a configurable option?

Thanks! /Rich

[1] https://github.com/ProfessionalWiki/chameleon/blob/d2da6b498eca0f75f188103a4a1e67416e8e250f/layouts/clean.xml#L29C52-L29C55

revansx avatar Jul 16 '23 22:07 revansx