Hi
After upgading to MediaWiki 1.22 the links under the sections in the Sidebar became automaticly hidden under the headings. I would like the sections to be open and not hidden. Is this possible? http://heimskringla.no JJ
Hi
After upgading to MediaWiki 1.22 the links under the sections in the Sidebar became automaticly hidden under the headings. I would like the sections to be open and not hidden. Is this possible? http://heimskringla.no JJ
Hi!
That is the collapsible navigation feature, which in 1.22 is integrated into the Vector skin. Formerly it was part of the Vector extension. With the extension you could disable collapsing with
$wgVectorFeatures['collapsiblenav']['global'] = false;
Does that also work with the skin?
I have just checked the according commit
https://git.wikimedia.org/commitdiff/mediawiki%2Fcore.git/603e6589e7678be099cea50129fde9696ef48c8b
and it does not look like there would be an option to disable this feature.
A nice way would be if it was possible to modify $out->addModules() as you can do with the new hook for $out->addModuleStyles(), however for addModules() I have not seen a hook.
One option might be to add this to the bottom of LocalSettings.php:
unset($wgResourceModules['skins.vector.collapsibleNav']);
This should prevent the skin from loading the collapsiblity-stuff (untested).
You could modify it with CSS (see Manual:Interface/Stylesheets). Each sidebar section has a element with a specific ID. You can use CSS to control the format, for example, force the display of the contents:
This example forces the content to be displayed always, for the Print/export element of the sidebar:
/* force the display of the contents of the section */
#p-coll-print_export .body {
display:block !important;
}
/* Option 1: hide the header */
#p-coll-print_export h3 {
display:none;
}
/* Option 2: just hide the arrow in the header */
#p-coll-print_export h3 {
background:none !important;
}
Thanks Ciencia. This work for the print_export section only, using the /* force the display, but could not get it to work on the other section. Do you know where I find the specific ID for the other section I'm using in my wiki at http://heimskringla.no ? JJ
I have created (and I am using it on my MediaWiki 1.23 wikis) code that can be added to LocalSettings.php to disable collapsible sidebar in MediaWiki 1.23 without modifications of MediaWiki files. The code is available at: https://github.com/DavisNT/CodeSamples/blob/master/MediaWiki%20hacks/Disable%20Collapsible%20Sidebar%20on%20MW%201.23.php
any way to reverse the effect of your code, and return to default?
Thanks