Re: [Zope3-Users] Zope 3 and menus

2007-11-11 Thread Stephan Richter
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

Re: [Zope3-Users] Zope 3 and menus

2007-03-13 Thread eXt
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

Re: [Zope3-Users] Zope 3 and menus

2007-03-13 Thread Tom Gross
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