[Mediawiki-l] Change the navigation box

Sebastien Routier sroutier at gmail.com
Fri Nov 12 13:24:40 UTC 2004


On Fri, 12 Nov 2004 22:37:21 +1000, Adam Parker <cyaegha at 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"?

-- 


______________________________________________________
Thanks.
/Sebast.

Visit us at http://limpingsquad.kicks-ass.org:8888/
______________________________________________________



More information about the MediaWiki-l mailing list