Hi everybody.
How can I add items to the navigation menu in the 1.4 version? I used to know how to do it back in the 1.3.8, but the 1.4 doesn't use template.
Thanks in advance
Abel
On Mon, 27 Dec 2004 03:50:03 -0500, Abel Gonzalez abelito@bioinfo.cu wrote:
How can I add items to the navigation menu in the 1.4 version?
Look at $wgNavigationLinks in DefaultSettings.php.
Kate.
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.
Morten :-)
Kate Turner wrote:
On Mon, 27 Dec 2004 03:50:03 -0500, Abel Gonzalez abelito@bioinfo.cu wrote:
How can I add items to the navigation menu in the 1.4 version?
Look at $wgNavigationLinks in DefaultSettings.php.
Kate. _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
-- Crews Cut Community http://www.crewscut.com
Morten Blaabjerg
On Tue, 28 Dec 2004 01:26:30 +0100, Morten Blaabjerg crewscut@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.
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@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@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
Kate Turner wrote:
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.
Except for that probably rare case when you need to "upgrade" to the last current dump, or simply use the wiki dumps starting with the 24.12.04. Then you will have big trouble. Either the Current text of the MediaWiki:Allmessages should be exported to a separate table (better written to a file called CurrentSettings.php) and then used as source to override the newly imported messages, or one should have all one's changes made in the LanguageXX.php and after the import of the last cur use # php rebuildMessages.php --update
I have also noticed that in the last cur_table dump {{SITENAME}} has been changed to "Wikipedia", and some new HTML tags do not work anymore, which is another reason to revisit carefully the Current text portion of the MediaWiki:Allmessages.
Best regards, Plamen
PS. Sorry for my previous message, I have misread navigation links for browsebar links.
I wanted to update the link in meta. with Kates mail, was not able to. s.o. with access could add that on that page?
-----Ursprungliche Nachricht----- Von: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org]Im Auftrag von Kate Turner Gesendet: Dienstag, 28. Dezember 2004 01:11 An: MediaWiki announcements and site admin list Betreff: Re: [Mediawiki-l] adding_links_to_navigation_menu
On Tue, 28 Dec 2004 01:26:30 +0100, Morten Blaabjerg crewscut@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@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Abel Gonzalez wrote:
Hi everybody.
How can I add items to the navigation menu in the 1.4 version? I used to know how to do it back in the 1.3.8, but the 1.4 doesn't use template.
edit yourdomain.com/wiki/Template:Categorybrowsebar like here http://www.indopedia.org/Template:Categorybrowsebar.html
Best, Plamen
mediawiki-l@lists.wikimedia.org