Gumaxdd and Extension TreeAndMenu
Posted: February 18th, 2010, 4:18 am
I use skin gumaxdd. It also works very well. I would like to include in this skin the Mediawiki Extension TreeandMenu. It will be displayed in the pull-down menu of Gumaxdd, but I have a few problems with the implementation.
I have a site created by the parser function ((# menu ....}}.
I do not know now how I read this page.
In the extension there is this function.
I thought I can somehow add so ...
Can you help me?
Thank you in advance.
I have a site created by the parser function ((# menu ....}}.
I do not know now how I read this page.
In the extension there is this function.
Code: Select all
wfNavTree function () (
global $ wgUse, $ wgTitle, $ wgParser;
if (is_object ($ wgParser)) $ psr = & $ wgParser; else $ psr = new Parser;
$ opt = ParserOptions:: newFromUser ($ wgUse);
$ nav = new Article (Title:: newFromText ( 'NavTree' NS_MEDIAWIKI));
$ out = $ psr-> parse ($ nav-> fetchContent (0, false, false), $ wgTitle, $ opt, true, true);
echo '</ ul> </ div>'. $ out-> getText ();
return true;
)
Code: Select all
<! - Navigation Menu ->
<div id="gumax-p-navigation">
<ul id="gumax-nav">
<? php $ this-> home link ();?>
<? php $ this-> navigationBox ();?>
<? php $ this-> wfNavTree ();?>
</ ul>
</ div>
<! - End of Navigation Menu ->
Thank you in advance.