Page 1 of 1

Gumaxdd and Extension TreeAndMenu

Posted: February 18th, 2010, 4:18 am
by crumpet
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.

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;
)
I thought I can somehow add so ...

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 ->
Can you help me?
Thank you in advance.

Re: Gumaxdd and Extension TreeAndMenu

Posted: February 28th, 2010, 11:38 pm
by Paul
I'm not sure it this would work with GuMaxDD, since the treeview is designed for monobook...

But you can give a try on this:
find

Code: Select all

$wgHooks['MonoBookTemplateToolboxEnd'][] = 'wfNavTree';
Replace 'MonoBookTemplateToolboxEnd' with 'GuMaxDDTemplateToolboxEnd' to see if it works...