ctrueden
ctrueden

Reputation: 6982

How do I add a horizontal top menu bar to a MediaWiki site without hacking the skin?

I want my MediaWiki site to have (either in addition to, or instead of, the sidebar) a bar of links at the top of the site, visible on every page.

Requirements

To minimize future maintenance burden, my requirements are:

  1. No modifications to core, extension or skin code. I do not want to maintain project forks.

  2. Ideally, privileged users should be able to edit the links shown in the menu bar by editing a special page, similar to how MediaWiki:Sidebar controls the content of the usual sidebar.

Solutions I have tried

Is there something obvious I am overlooking here? How do other MediaWiki sites do this?

Upvotes: 4

Views: 2665

Answers (1)

ctrueden
ctrueden

Reputation: 6982

After digging further into the Erudite skin, I learned that its horizontal top menu bar is drawn from the "navigation" section of the MediaWiki:Sidebar. (My particular problem was that I had that section labeled capitalized as "Navigation" rather than all lower case as "navigation"; when I changed that, I started seeing links in the top menu.)

So with that skin, the sidebar might look something like:

* navigation
** Welcome|Welcome
** Downloads|Downloads
** Help|Contact and Help

* Learn
** Introduction|Introduction
** User Guides|User Guides
** Tutorials|Tutorials

* Develop
** Development|Overview
** Scripting|Scripting
** Source code|Source code

And the menu will render similar to:

Site using Erudite skin, with a top menu

I'd still be interested to hear if I am missing some built-in MediaWiki functionality, e.g. with the Vector skin, or a common widely used extension.

Upvotes: 2

Related Questions