I wanted to add a link to this in the Quick Bar - Navigation. Adding array( 'text'=>'newimages', 'href'=>'newimages-url' to LocalSettings.php threw up an error page. I had to add 'newimages-url' => 'Special:Newimages', after 'newimages' => 'New images gallery', in Language.php.
Seems to work for me but don't really know if there are other implications of these changes.
Ken Ross
Harder to upgrade. (I know, I run several wikis, none of which have stock core code. I find Winmerge indespensible when it comes time to upgrade).
The code to add that should be something like this: $wgNavigationLinks[] = array('text'=>'newimages', 'href'=>'newimages-url'); Note the closing parentheses and semi-colon.
Also make sure you create [[MediaWiki:newimages]] and [[MediaWiki:newimages-url]] and in them place the caption/URL for the link.
On Fri, 25 Mar 2005 09:56:09 -0000, Ken Ross ken@rockon.me.uk wrote:
I wanted to add a link to this in the Quick Bar - Navigation. Adding array( 'text'=>'newimages', 'href'=>'newimages-url' to LocalSettings.php threw up an error page. I had to add 'newimages-url' => 'Special:Newimages', after 'newimages' => 'New images gallery', in Language.php.
Seems to work for me but don't really know if there are other implications of these changes.
Ken Ross
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org