Brion Vibber <brion@...> writes:
topi wrote:
I want to replace the navigation-menu by a fixed article (e.g. mywiki:menu). Therefor i just would like to replace the navigation part ("<?php foreach($this->data['navigation_urls'] ... " by a function, which inserts the article called "mywiki:menu". This would make the changing of the navigation-menue much more easier
You should be able to use SkinTemplate's msgWiki() method for this, using a custom message in the MediaWiki: namespace to store the list.
Be aware that loading and rendering extra wikitext on every page may slow things down a bit, which is part of why we don't do it that way.
Thanks a lot Brion
it works fine within the MonoBook.php skin
but when using that hack e.g. in CologneBlue.php i get an error message:
Fatal error: Call to undefined method SkinCologneBlue::msgWiki() in C:\apachefriends\xampp\htdocs\wiki\skins\CologneBlue.php on line 188
topi