We have recently created a custom model in alfresco: downloaded the 2.2.1 archetype and edited content-model.xml.
It took as some time to discover that
- the prefix of a namespace can not contain underscore "_" character
- the name of the model can not be "contentModel"
<model name="pr:contentModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
...
</model>
Apologies, is these are not true, or/and documented somewhere.
One question is what alfresco classes parses the models in repository tier, and the alfresco-config in the share tier, so by reading the code we could correct further mistakes.
Meanwhile, in share, there are some configurations with properties like 'evaluator' and 'condition'
e.g. <config evaluator="node-type" condition="cm:content"> ...</config>
<config evaluator="aspect" condition="pr:myAspectName">...</config>
and further properties
e.g.
force="true"
for-mode="edit"
Where could we learn more about their usage?
Thanks in advance