Topic on Skin talk:Chameleon

Jump to navigation Jump to search

stickyhead layout navbar-header contents?

9
Iantresman (talkcontribs)

At the top of the stickyhead layout is an empty "margin". Should it be?

I've selected the stickyhead layout, and note in the source that there is a class="navbar-header" element at the very top of the page. It appears to be completely empty, but contains hidden buttons to "toggle navigation".

  1. How do you put something into this area, such as the site title (eg. $wgSitename )
  2. Or how is the toggle navigation button enabled?
F.trott (talkcontribs)

Do you have a link?

Iantresman (talkcontribs)
F.trott (talkcontribs)

Hmm, looks not so nice. I'll have to look into this, not sure what's breaking this.

F.trott (talkcontribs)

Ha, in fact it is not broken! Shows that I really need to improve documentation. :) Stickyhead allows you to have a secondary menu: the empty margin. The menu structure is defined in MediaWiki:Secondary-menu the same way as the primary menu is defined in Mediawiki:Sidebar. If you just want the primary menu to not leave the page use fixedhead.

Albert Ke (talkcontribs)
F.trott (talkcontribs)

Well, it is really only supposed to hold a secondary menu, not generic text. So to get it working you need to add an unordered list to MediaWiki:Secondary-menu, like

*Foo
**foo1
**foo2
*Bar
**bar

To put something else there you'll need to use a modified layout file where the secondary menu is replaced by something else.

Albert Ke (talkcontribs)

Good point, unordered list works. Thank you!

Iantresman (talkcontribs)

Thanks for that, all makes sense now.

Reply to "stickyhead layout navbar-header contents?"