[Zope-CMF] a reference tabs appears with archetypes
J. Cameron Cooper
jccooper at jcameroncooper.com
Mon Jan 12 19:00:51 EST 2004
mulamba kamahunda wrote:
>i have created several archetypes product.
>When i use them into plone, a "reference" tab appears
>with the view, edit,
>properties and state tabs.
>Is there a way to not have this tab?
>how can i hide the properties tabs too?
>
>
Archetypes (somewhat spuriously) always creates these when you implement
interfaces for references and properties, and the usual base classes do
this for you.
You may get out of it by changing your Type, or you can declare that you
don't implement those interfaces (although really you do.) This is
somewhat suspect and may prove brittle if you change base classes (a
weakness of the interface implementation). I do it anyway just to get
rid of it with code. To do this, you must declare your own
'__implements__' with everything but the offending interfaces left out.
--jcc
--
"My point and period will be throughly wrought,
Or well or ill, as this day's battle's fought."
More information about the Zope-CMF
mailing list