[Mediawiki-l] Re: calling a wiki-page by a defined name

topi topologis at t-online.de
Thu Jun 9 17:45:31 UTC 2005


Brion Vibber <brion at ...> 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







More information about the MediaWiki-l mailing list