Gumaxdd and Extension TreeAndMenu

Use this forum to ask questions about how to do things in GuMax skin.
Post Reply
User avatar
crumpet
Rank 0
Rank 0
Posts: 1
Joined: February 6th, 2010, 8:24 am

Gumaxdd and Extension TreeAndMenu

Post 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.
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: Gumaxdd and Extension TreeAndMenu

Post 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...
Post Reply