You are here: Home / Documentation / How To's / How to change an Archetypes attribute's schemata

How to change an Archetypes attribute's schemata

by nguyen — published Sep 30, 2010 12:22 PM, last modified Aug 16, 2016 10:50 AM
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')
 
Navigation