<?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 Re: Search for content type in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/search-for-content-type/m-p/268393#M221523</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Maybe the simple solution for this is to create new property of &lt;/SPAN&gt;&lt;EM&gt;my:doc&lt;/EM&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;EM&gt;my:docType&lt;/EM&gt;&lt;SPAN&gt; which is simple text and have already predefined values as constraint (subdoc1, subdoc2, subdoc3). Add this property into the share-config-custom.xml configuration. All subtypes of my:doc, &lt;/SPAN&gt;&lt;EM&gt;my:subdoc1, my:subdoc2, my:subdoc3&lt;/EM&gt;&lt;SPAN&gt; need to have &lt;/SPAN&gt;&lt;EM&gt;my:docType&lt;/EM&gt;&lt;SPAN&gt; set to related value. To set this values for every subtypes you can write onCreate behavior where corresponding values of&amp;nbsp; &lt;/SPAN&gt;&lt;EM&gt;my:docType&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp; properties will be set(eg. for my:subdoc1 type set&amp;nbsp; &lt;/SPAN&gt;&lt;EM&gt;my:docType&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp; to "subdoc1" ). The second solution for this is to set value to this property explicitly in model (I am not sure about this).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this will help you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Mar 2011 13:32:38 GMT</pubDate>
    <dc:creator>drndivoje</dc:creator>
    <dc:date>2011-03-11T13:32:38Z</dc:date>
    <item>
      <title>Search for content type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-for-content-type/m-p/268392#M221522</link>
      <description>Hello, into my custom model I defined a base content type, for instance my:doc (parent is cm:content), and some properties. Then I created few other content types having my:doc as parent (for instance, my:subdoc1, my:subdoc2, my:subdoc3, ..).Within share-config-custom.xml I created the following con</description>
      <pubDate>Sat, 05 Mar 2011 15:10:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-for-content-type/m-p/268392#M221522</guid>
      <dc:creator>alarocca</dc:creator>
      <dc:date>2011-03-05T15:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Search for content type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-for-content-type/m-p/268393#M221523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Maybe the simple solution for this is to create new property of &lt;/SPAN&gt;&lt;EM&gt;my:doc&lt;/EM&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;EM&gt;my:docType&lt;/EM&gt;&lt;SPAN&gt; which is simple text and have already predefined values as constraint (subdoc1, subdoc2, subdoc3). Add this property into the share-config-custom.xml configuration. All subtypes of my:doc, &lt;/SPAN&gt;&lt;EM&gt;my:subdoc1, my:subdoc2, my:subdoc3&lt;/EM&gt;&lt;SPAN&gt; need to have &lt;/SPAN&gt;&lt;EM&gt;my:docType&lt;/EM&gt;&lt;SPAN&gt; set to related value. To set this values for every subtypes you can write onCreate behavior where corresponding values of&amp;nbsp; &lt;/SPAN&gt;&lt;EM&gt;my:docType&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp; properties will be set(eg. for my:subdoc1 type set&amp;nbsp; &lt;/SPAN&gt;&lt;EM&gt;my:docType&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp; to "subdoc1" ). The second solution for this is to set value to this property explicitly in model (I am not sure about this).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this will help you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 13:32:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-for-content-type/m-p/268393#M221523</guid>
      <dc:creator>drndivoje</dc:creator>
      <dc:date>2011-03-11T13:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Search for content type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-for-content-type/m-p/268394#M221524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot drndivoje.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your first suggestion works for sure. Probably it complicates a bit the content type management, since new sub-type will require to update the behaviour. Anyway it is a step on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will verify soon the second solution (override default value of a property directly on the schema). If feasibile, it will be great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a nice weekend,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alessandro&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 14:07:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-for-content-type/m-p/268394#M221524</guid>
      <dc:creator>alarocca</dc:creator>
      <dc:date>2011-03-11T14:07:42Z</dc:date>
    </item>
  </channel>
</rss>

