[Zope3-Users] suppress menu item with zcml?

Jim Fulton jim at zope.com
Thu Jun 23 09:28:07 EDT 2005


Dylan Reinhardt wrote:
> Is there a simple/correct way to suppress a menu item using ZCML?
> 
> For example, I have a content type that implements
> IAttributeAnnotatable and I want to suppress display of the "Metadata"
> tab in zmi_views.
> 
> I expected this would work:
> 
> ----
>   <menuItem
>       for="foo.interfaces.IFoo"
>       menu="zmi_views"
>       title="Metadata"
>       action="EditMetaData.html"
>       filter="python:0"
>       />
> __

This is the normal way to do it yes.

> When my content interface *inherits* from an interface, this seems to
> work... but when my class *implements* an interface, this appears not
> to.

I don't know what you mean.

Jim

-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org


More information about the Zope3-users mailing list