> I am trying to develop an add-on product for Plone 3.1 using argoUML, which > adds a file together with some additional information to the content. When I > want to add an item of this type to the conteet, a tab named "metadata" is > always displayed. Because I want to add similar information on the primary > input page I do not need this second tab, since it contains almost the same > widgets as "my" page.
I would use archetypes.schemaextender to move the fields that are currently in the metadata schemata to the default schemata. That will immediately reduce the number of widgets on the metadata tab. To make it disappear while playing along with Archetypes rules you should set the remaining widgets to have a visibility of False. You can do this with schemaextender by redeclaring the fields and set the widget visibility to False, but perhaps a simpler way is to do MySchema['subject'].widget.visible = False just above your class declaration. I just picked subject as an example. There are a few other fields which are under the metadata schemata which you'll need to set as well. The Archetypes machinery will scan through the fields and prevent essentially empty schematas from showing up in the UI. Hedley _______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
