> That's fine, except that my original link to the wiki is redundant - 
> what is the intended way (if any) to add the wiki menu as an item in the 
> web2py menu?

I'm not sure this is the best way currently (I posted this a time ago but 
the wiki api might have changed).
You could instantiate a Wiki object and call it's menu method in the model:

from gluon.tools import Wiki
mywiki = Wiki(auth)
# you have to specify which action the menu is linked to
themenu = mywiki.menu(<controller>, <function>)

Now you should be able to add the menu item to response.menu.

Mind that if this is run in the same action as the app wiki, you'll 
duplicate the menu item. For solving this, add a conditional statement to 
the model so the menu item is appended only if it's not a wiki.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to