How to change an Archetypes attribute's schemata
by
T. Kim Nguyen
—
last modified
Sep 30, 2010 12:22 PM
For example, move "related items" from the Categories schemata to the default schemata
In an Archetypes content type I wanted to hide all the standard schemata "buttons" (Default, Categories, Ownership, Dates, Settings) but still allow the user to add related items.
You use the changeSchemataForField() method, but make sure you call it after the finalizeATCTSchema() call:
schemata.finalizeATCTSchema(SoftwareRequestSchema, moveDiscussion=False)
SoftwareRequestSchema.changeSchemataForField('relatedItems', 'default')











