AnsweredAssumed Answered

defaults and aspects

Question asked by cgagne on Jul 25, 2006
I am constructing some custom aspects so I can use them across content_types. I am also constucting a dozen or so content_types, with the expectation of pulling in the desired aspects that are appropriate to the specific content model.

I would like to set a default value to a property within the aspect for a specific content_type.

Example: 
Aspect DocType, has property documentType d:text

ContentType SOP , has aspect docType. Set documentType default='SOP'

ContentType Correspondence, has aspect docType. Set documentType default='Correspondence'

Does the default get set in the content_model, perhapse when I introduce <mandatory-aspect>.  However, I do not re-name the aspect properties there, so I do not see how to set the default.  Any suggestion?

Thanks,
-cg

Outcomes