Makes the TOC float to a page side and act as a sticky panel
- MediaWiki 1.35+
- Chameleon skin 2+
- Clone the extension into the
extensions
folder - Add
wfLoadExtension('StickyTOC');
to the bottom ofLocalSettings.php
$wgStickyTOCFloat
- allows controlling to which side the TOC will float. By default it's set toleft
, but it can be changed toright
oraside
:left
- TOC floats to the leftright
- TOC floats to the rightaside
- TOC jumps to the left and acts as a column, shifting the page contents to the right
$wgStickyTOCNavbar
- If set totrue
m will force the TOC to treat the current layout navbar as being sticky. By default this is set tofalse
. There is no need to change this for the default Chameleonstickyhead.xml
layout, only for custom ones.
Created for the National Gallery of Art HEALD wiki.