<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic content-model.xml in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/content-model-xml/m-p/30862#M13110</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have created a content model like below, In this file,It is not take two properties with same name in different types, can see the commented tags in second type named as contractNumber.If i uncomment it, it throws an error containing duplicate. Why it is not accepting? And how can i declare it?&lt;/P&gt;&lt;P&gt;Can anyone help me to get a clarification on this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;content-model.xml&amp;nbsp; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- Definition of new Model --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- The important part here is the name - Note: the use of the my: namespace&lt;BR /&gt; which is defined further on in the document --&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;model name="my:contentModel" xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/dictionary/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/dictionary/1.0&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- Optional meta-data about the model --&amp;gt; &lt;BR /&gt; &amp;lt;description&amp;gt;Example Custom Model&amp;lt;/description&amp;gt;&lt;BR /&gt; &amp;lt;author&amp;gt;&amp;lt;/author&amp;gt;&lt;BR /&gt; &amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- Imports are required to allow references to definitions in other models --&amp;gt; &lt;BR /&gt; &amp;lt;imports&amp;gt;&lt;BR /&gt; &amp;lt;!-- Import Alfresco Dictionary Definitions --&amp;gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;import uri="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/dictionary/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/dictionary/1.0&lt;/A&gt;&lt;SPAN&gt;" prefix="d"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &amp;lt;!-- Import Alfresco Content Domain Model Definitions --&amp;gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;import uri="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;" prefix="cm"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &amp;lt;/imports&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- Introduction of new namespaces defined by this model --&amp;gt;&lt;BR /&gt; &amp;lt;!-- NOTE: The following namespace my.new.model should be changed to reflect your own namespace --&amp;gt;&lt;BR /&gt; &amp;lt;namespaces&amp;gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;namespace uri="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.mycompany.com/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.mycompany.com/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;" prefix="my"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &amp;lt;/namespaces&amp;gt;&lt;BR /&gt; &lt;BR /&gt; &amp;lt;types&amp;gt;&lt;BR /&gt; &amp;lt;type name="my:salesCustomerCare"&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;Sales and Customer care&amp;lt;/title&amp;gt;&lt;BR /&gt; &amp;lt;parent&amp;gt;cm:content&amp;lt;/parent&amp;gt;&lt;BR /&gt; &amp;lt;/type&amp;gt;&lt;BR /&gt; &amp;lt;type name="my:contractCopies"&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;Contract Copies&amp;lt;/title&amp;gt;&lt;BR /&gt; &amp;lt;parent&amp;gt;my:salesCustomerCare&amp;lt;/parent&amp;gt;&lt;BR /&gt; &amp;lt;properties&amp;gt;&lt;BR /&gt; &amp;lt;property name="my:contractType"&amp;gt;&lt;BR /&gt; &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;&lt;BR /&gt; &amp;lt;mandatory&amp;gt;false&amp;lt;/mandatory&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;property name="my:contractNumber"&amp;gt;&lt;BR /&gt; &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;&lt;BR /&gt; &amp;lt;mandatory&amp;gt;true&amp;lt;/mandatory&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;property name="my:clientName"&amp;gt;&lt;BR /&gt; &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;&lt;BR /&gt; &amp;lt;mandatory&amp;gt;true&amp;lt;/mandatory&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;property name="my:contractStart"&amp;gt;&lt;BR /&gt; &amp;lt;type&amp;gt;d:date&amp;lt;/type&amp;gt;&lt;BR /&gt; &amp;lt;mandatory&amp;gt;false&amp;lt;/mandatory&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;property name="my:contractEnd"&amp;gt;&lt;BR /&gt; &amp;lt;type&amp;gt;d:date&amp;lt;/type&amp;gt;&lt;BR /&gt; &amp;lt;mandatory&amp;gt;false&amp;lt;/mandatory&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;/properties&amp;gt;&lt;BR /&gt; &amp;lt;/type&amp;gt;&lt;BR /&gt; &amp;lt;type name="my:wrcTenancyCertificate"&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;WRC Tenancy Certificate&amp;lt;/title&amp;gt;&lt;BR /&gt; &amp;lt;parent&amp;gt;my:salesCustomerCare&amp;lt;/parent&amp;gt;&lt;BR /&gt; &amp;lt;properties&amp;gt;&lt;BR /&gt; &amp;lt;property name="my:dateOfApplication"&amp;gt;&lt;BR /&gt; &amp;lt;type&amp;gt;d:date&amp;lt;/type&amp;gt;&lt;BR /&gt; &amp;lt;mandatory&amp;gt;false&amp;lt;/mandatory&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;property name="my:referenceNumber"&amp;gt;&lt;BR /&gt; &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;&lt;BR /&gt; &amp;lt;mandatory&amp;gt;false&amp;lt;/mandatory&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;property name="my:leaseIssueDate"&amp;gt;&lt;BR /&gt; &amp;lt;type&amp;gt;d:date&amp;lt;/type&amp;gt;&lt;BR /&gt; &amp;lt;mandatory&amp;gt;false&amp;lt;/mandatory&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;property name="my:leaseExpiryDate"&amp;gt;&lt;BR /&gt; &amp;lt;type&amp;gt;d:date&amp;lt;/type&amp;gt;&lt;BR /&gt; &amp;lt;mandatory&amp;gt;true&amp;lt;/mandatory&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;!-- &amp;lt;property name="my:contractNumber"&amp;gt;&lt;BR /&gt; &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;&lt;BR /&gt; &amp;lt;mandatory&amp;gt;true&amp;lt;/mandatory&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt; --&amp;gt;&lt;BR /&gt; &amp;lt;property name="my:tenantName"&amp;gt;&lt;BR /&gt; &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;&lt;BR /&gt; &amp;lt;mandatory&amp;gt;true&amp;lt;/mandatory&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;property name="my:tenantCompany"&amp;gt;&lt;BR /&gt; &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;&lt;BR /&gt; &amp;lt;mandatory&amp;gt;true&amp;lt;/mandatory&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt; &lt;BR /&gt; &amp;lt;/properties&amp;gt;&lt;BR /&gt; &amp;lt;/type&amp;gt;&lt;BR /&gt; &amp;lt;/types&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/model&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 15 Oct 2017 06:59:46 GMT</pubDate>
    <dc:creator>yuva</dc:creator>
    <dc:date>2017-10-15T06:59:46Z</dc:date>
    <item>
      <title>content-model.xml</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/content-model-xml/m-p/30862#M13110</link>
      <description>HiI have created a content model like below, In this file,It is not take two properties with same name in different types, can see the commented tags in second type named as contractNumber.If i uncomment it, it throws an error containing duplicate. Why it is not accepting? And how can i declare it?C</description>
      <pubDate>Sun, 15 Oct 2017 06:59:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/content-model-xml/m-p/30862#M13110</guid>
      <dc:creator>yuva</dc:creator>
      <dc:date>2017-10-15T06:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: content-model.xml</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/content-model-xml/m-p/30863#M13111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are declaring twice the same property "d:text"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;property name="my:contractNumber"&amp;gt;&lt;BR /&gt;&amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;&lt;BR /&gt;&amp;lt;mandatory&amp;gt;true&amp;lt;/mandatory&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;!-- &amp;lt;property name="my:contractNumber"&amp;gt;&lt;BR /&gt;&amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;&lt;BR /&gt;&amp;lt;mandatory&amp;gt;true&amp;lt;/mandatory&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt; --&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think, you don´t have two properties with the same name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;clv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 09:58:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/content-model-xml/m-p/30863#M13111</guid>
      <dc:creator>calvo</dc:creator>
      <dc:date>2017-10-16T09:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: content-model.xml</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/content-model-xml/m-p/30864#M13112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yuvraj,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Property names have to be unique. Put them on an aspect, a super type or in different name spaces. If they are the same property you need to define an aspect or create a super type and inherit the common properties&lt;/SPAN&gt;&lt;BR /&gt;Please refer this &lt;A _jive_internal="true" href="https://community.alfresco.com/docs/DOC-4735-data-dictionary-guide#Schema_Namespaces" rel="nofollow noopener noreferrer"&gt;data dictionary guide&lt;/A&gt; for more information&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Kalpesh&lt;BR /&gt;&lt;A href="http://www.contcentric.com" rel="nofollow noopener noreferrer"&gt;ContCentric&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 15:09:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/content-model-xml/m-p/30864#M13112</guid>
      <dc:creator>kalpesh_c2</dc:creator>
      <dc:date>2017-10-16T15:09:48Z</dc:date>
    </item>
  </channel>
</rss>

