How to remove an inherited field from a new conten

2019-09-01 03:41发布

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?

2条回答
手持菜刀,她持情操
2楼-- · 2019-09-01 04:27

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

YourSchema['FieldName'].widget.visible = {'view': 'hidden', 'edit':'hidden' }
查看更多
smile是对你的礼貌
3楼-- · 2019-09-01 04:32

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

YourSchema['FieldName'].required = False
查看更多
登录 后发表回答