Revision as of 16:24, 12 November 2026 by Mlink-rodrigue(talk | contribs)(Created page with " The Menu editor allows you to edit the Main navigation menu types '''MediaWiki sidebar''' and Enhanced '''MediaWiki sidebar'''. It is also used in the Book editor. == MediaWiki sidebar == If your navigation is set to MediaWiki sidebar, hover over its last navigation link. An edit icon appears. File:Extension MenuEditor edit icon.png|alt=visible edit icon of the MediaWik...")
Enter the link target (page name) and the link designation (label).Create linkCreate link
Click on Done.
Repeat steps 1-3.
ClickSave.
Enhanced MediaWiki sidebar
First, you need to set the main navigation to show the Enhanced MediaWiki sidebar in the configuration manager.
This view shows a fully customizable multi-hierarchical menu.
Here, you edit the page MediaWiki:Sidebar.json. It has the basic functionality of the standard MediaWiki sidebar. In addition, it distinguishes between the following sub elements (=node types):
Internal Link: Simply provide a link to a wiki page with an additional link label. Both the page name and/or label can be created by using a parser function.Internal link with a variable.Internal link with a variable.
External Link: Same as internal link, but you need to provide a full url to an external website.
Subpage tree: You can provide the name of a page that has one or more levels of subpages. You can set the depth 6 levels deep. This means, that if you want to show the first level of subpages, you would select a depth of 2. A depth of 1 only shows the selected page itself.
You cannot use the same link label twice for different subpage trees, because the expand/collapse functionality will break.
It is not possible to change the node type (=item type) after creating it. Instead, create a new item as needed and delete the unwanted item.
Show for groups
In addition, the visibility of a menu item can be limited to certain wiki groups. Enter a comma-separated list of existing wiki groups in the "Show for groups" field.
Note: Technically savvy users can, if necessary, "convert" the group constraint into a namespace constraint. However, this "conversion" is not reflected in the GUI mode of the menu editor and should therefore be used with caution. Technically, however, it would be possible to make the change as follows:
First, create a group constraint for an element. For the element you want to show based on namespace, find the group restriction in the JSON source code:
Change the value of the "hidden" key to the following parser function, where Test is the name of the namespace in which this element should be displayed: