HiI have just started looking into Alfresco and here is a problem I have. I have created these three types:* fa:base_document - this is a base type which contains some common attributes:
<type name="fa:base_document">
<title>Base Document</title>
<parent>cm:content</parent>
<properties>
<property name="fa:documentType">
<type>d:text</type>
</property>
<property name="fa:productRef">
<type>d:text</type>
</property>
<property name="fa:description">
<type>d:text</type>
</property>
</properties>
</type>
* fa:document - this is my document type, this adds only approvedOn attribute
<type name="fa:document">
<title>Document</title>
<parent>fa:base_document</parent>
<properties>
<property name="fa:approvedOn">
<type>d:date</type>
</property>
</properties>
</type>
* fa:folder - this is my new folder type, adds two attributes (approvedOn can be set when all documents in this folder are also approved)
<type name="fa:folder">
<title>Folder</title>
<parent>cm:folder</parent>
<properties>
<property name="fa:productRef">
<type>d:text</type>
</property>
<property name="fa:approvedOn">
<type>d:date</type>
</property>
</properties>
</type>
As you can see there is a fa
roductRef attribute both in fa:document and in fa:folder - this is a field which is common for these two types.Now, when I validate this model I get:kbryd@mob:~/tmp/alfresco/tomcat$ ./modelValiddate.sh Testing dictionary model definitions… alfresco/model/dictionaryModel.xml alfresco/model/systemModel.xml org/alfresco/repo/security/authentication/userModel.xml alfresco/model/contentModel.xml alfresco/model/wcmModel.xml alfresco/model/applicationModel.xml alfresco/model/bpmModel.xml alfresco/extension/testModel.xmlFound an invalid model…Could not import bootstrap model alfresco/extension/testModel.xmlFailed to compile model fa:testmodelFound duplicate property definition fa
roductRef within class fa:folder and class fa:base_documentI have read somewhere that the name of attribute must be globally unique, but I don't understand why and first of all how one should proceed in such situations like mine (I don't like the idea to change name of a property each time)? Should I create an aspect instead of that attribute?ThanksKarol