[Zope3-Users] suppress menu item with zcml?
Dylan Reinhardt
dylanreinhardt at gmail.com
Tue Jun 21 13:57:55 EDT 2005
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"
/>
__
When my content interface *inherits* from an interface, this seems to
work... but when my class *implements* an interface, this appears not
to.
What is the correct way to do what I'm trying to do?
TIA,
Dylan
More information about the Zope3-users
mailing list