I'm using the MonoBook skin and would like to add and remove some entries from the 'navigation' box on the left of the page. Where do I do this?
-Adam.
On Fri, 12 Nov 2004 22:37:21 +1000, Adam Parker cyaegha@iinet.net.au wrote:
I'm using the MonoBook skin and would like to add and remove some entries from the 'navigation' box on the left of the page. Where do I do this?
I was partially successful in achieving this. But I must admit that it was a lot harder than it should be. I was looking for a way to add a link to our sandbox in the Navigation menu.
I first had to modify the file "/templates/xhtml_slim.pt" like this:
------------------------------- START PASTE -------------------------------------- diff -Naur _mw137-en135_ORG/templates/xhtml_slim.pt wiki/templates/xhtml_slim.pt --- _mw137-en135_ORG/templates/xhtml_slim.pt 2004-10-28 12:14:23.000000000 -0400 +++ wiki/templates/xhtml_slim.pt 2004-11-10 16:52:17.000000000 -0500 @@ -77,6 +77,10 @@ i18n:translate="string:randompage">Random Page</a></li> <li id="n-help"><a href="${nav_urls/help/href}" i18n:translate="string:help">Help</a></li> + + <li id="n-sandbox"><a href="SandBox" + i18n:translate="string:Sandbox">Sandbox</a></li> + <li id="n-sitesupport" tal:condition="nav_urls/sitesupport/href"><a href="${nav_urls/sitesupport/href}" i18n:translate="string:sitesupport">Donations</a></li> </ul> ------------------------------- END PASTE --------------------------------------
This resulted in "<SandBox>" being added to the menu?! After a searching the mailing list archive I found the answer to this problem. MediaWiki:Sandbox I was missing the definition of the page "MediaWiki:Sandbox". So I just went and created it. The only thing it contains is the term "Sandbox" (without the double quotes). Then it almost worked! The problem I have now is that it seams to work from every page except when I am editing a page.
From any page the URL is (that works):
"http://srmdk01.ottawa.hcl.com/wiki/index.php/SandBox"
From a page in edit mode the URL is (that is broken):
"http://srmdk01.ottawa.hcl.com/wiki/SandBox"
Question I have is:
How do I fix Apache to be like Wikipedia so that my URL never have to refer to "/index.php"?
Sebastien Routier wrote: <snip>
Question I have is:
How do I fix Apache to be like Wikipedia so that my URL never have to refer to "/index.php"?
Read the MediaWiki user guide: http://meta.wikimedia.org/wiki/Rewrite_Rules
:o)
The following link, available from the Mediawiki documentation site, contains some helpful tips and examples similar to the type of modifications you are asking for:
http://wise-nano.org/w/Programming_notes
(you can also modify the existing links in the nav panel by going to the Special: all systems messages page and changing the appropriate links there.)
=)
Taneem Talukdar
On Fri, 12 Nov 2004 22:37:21 +1000, Adam Parker cyaegha@iinet.net.au wrote:
I'm using the MonoBook skin and would like to add and remove some entries from the 'navigation' box on the left of the page. Where do I do this?
-Adam. _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org