Raul Ross Pineda
Raul Ross Pineda

Reputation: 9

How to remove an inherited field from a new content type

I'm working with ArgoUML/AGX/Plone 4.1 to generate a subclass using "atevent" as the stereotype. How do I remove the inherited "Event body text" field?

Upvotes: 0

Views: 291

Answers (2)

Campbell
Campbell

Reputation: 725

If the field is required in the original schema, you'll also need

YourSchema['FieldName'].required = False

Upvotes: 1

sauzher
sauzher

Reputation: 388

you can set the widget invisible for editing and for viewing.

YourSchema['FieldName'].widget.visible = {'view': 'hidden', 'edit':'hidden' }

Upvotes: 2

Related Questions