[Mediawiki-l] Links Question

Cameron Stephen camstephen at iprimus.com.au
Fri Sep 3 12:30:22 UTC 2004


I really would appreciate an answer to this one!

To make a link in the nav bar to Special:AllPages (ie make a link to an
index of all pages in the wiki) do I insert this (below) into SkinPHPTal.php
code?

$nav_urls['allpages'] = array('href' => htmlspecialchars(
$this->makeSpecialUrl('Allpages')));

and also in xhtml_slim.pt:

<li id="n-allpages"><a href="${nav_urls/allpages/href}"
		i18n:translate="string:allpages">All Pages</a></li>  ??

Also what is the difference between:
makeSpecialUrl and makeI18nUrl? - Should I have one or the other in the
SkinPHPTal.php code?

Would this work or have I got it wrong? Are there any other files I need to
modify?
This next bit is probably more complex, so I understand if there is not a
straightforward answer) -
How does one make external links using the syntax above? Or even say a link
to a php page sitting just above the wiki directory on my server?
I see that the topic of modifying links in the nav bar has come up a few
times. Is there a tutorial or a step-by-step walkthrough anywhere, say at
MetaWiki or somewhere?


C. J. Stephen
notReality ~
http://www.notreality.biz/notreality.php
Photoblogring.org ~
http://photoblogring.nfshost.com




More information about the MediaWiki-l mailing list