On Tuesday 13 March 2007, eXt wrote:
> I've got a problem with menus. I'd like to define a global menu,
> and then add some options to it depending on actual context (view
> registered for specific interface). The problem is that when I define
> global menu element link like: action="/index
Dnia wtorek, 13 marca 2007 15:12, Tom Gross napisaĆ:
> Hi there,
>
> I override BrowserMenu from zope.app.publisher.browser.menu and add
> a entry 'abs_action' to the resulting dictionary.
Nice solution. Thanks a lot!
--
Jakub Wisniowski
___
Zope
Hi there,
I override BrowserMenu from zope.app.publisher.browser.menu and add
a entry 'abs_action' to the resulting dictionary.
Something like:
class MyBrowserMenu(BrowserMenu):
def modify(self, menu, request):
siteurl = absoluteURL(hooks.getSite(), request)
for item in m