[Mediawiki-l] adding_links_to_navigation_menu

Morten Blaabjerg crewscut at mail.dk
Tue Dec 28 01:04:52 UTC 2004


Kate,

That didn't work for me (not alone, at least). I inserted my new menu items into my
localsettings, but the new link name as well as its destination is specified in the
language-file and only then created in the database when it was reloaded.

You suggest there is another way to create the linkname and link-url in the
database/special messages, without altering the language-file? Would you care to
elaborate? Either here, or in the meta page?

If the linkname and link-url is created in the database from the language-file, will
it still be wiped out in future updates of the files?

Morten :-)


Kate Turner wrote:

> On Tue, 28 Dec 2004 01:26:30 +0100, Morten Blaabjerg <crewscut at mail.dk> wrote:
> > Here's a link which roughly describes the procedure, which I can testify works.
> > In order to make the new link work properly, you need also to alter the
> > language-file, (and add it to the "monobook.js" from within the wiki
> > (specialmessages) for the hover message).
> >
> > http://meta.wikimedia.org/wiki/Quickbar
> >
> > Same procedure can be used to remove items from the navigation menu.
>
> There are a couple of things to note with that (which I'll fix in a
> moment, but for anyone reading here)...
>
> # Don't ever edit DefaultSettings.php.  Copy the contents of whatever
> you want to change to LocalSettings.php and change it there, otherwise
> you'll have problems when you upgrade (in this case it's an array, so
> you should be able to append to it using '+', IIRC).
> # You should never need to edit Language.php or LanguageXX.php.
> Creating the messages under the MediaWIki: namespace (e.g.
> [[MediaWiki:Foo-url]]) works fine, and again won't break when you
> upgrade and overwrite the language file.
>
> Kate.
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l

--
Crews Cut Community
http://www.crewscut.com

Morten Blaabjerg
Dronningensgade 4B, DK-5000 Odense C.
Tlf. +45 65 90 60 88





More information about the MediaWiki-l mailing list