AnsweredAssumed Answered

Maximum and minimum length of cm:name,cm:title

Question asked by swemon on May 17, 2012
Latest reply on May 18, 2012 by afaust
I want to get the alfresco maximum and minimum length of default property such as cm:name, cm:title, cm:description, cm:modified and cm:modifier which are showed in Advanced Search page.

I know property constraint can be given using Content Model Constraints. http://wiki.alfresco.com/wiki/Content_Model_Constraints But I don't find for default property.

Can anyone give me hints or explanation for that??

<config evaluator="model-type" condition="cm:content" replace="true">
   <forms>
         <!– Search form –>
         <form id="search">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="mimetype" />
               <show id="cm:modified" />
               <show id="cm:modifier" />
            </field-visibility>
            <appearance>
               <field id="mimetype">
                  <control template="/org/alfresco/components/form/controls/mimetype.ftl" />
               </field>
               <field id="cm:modifier" label-id="label.custom.modifier">
                  <control>
                     <control-param name="forceEditable">true</control-param>
                  </control>
               </field>
               <field id="cm:modified" label-id="label.custom.modified">
                  <control template="/org/alfresco/components/form/controls/daterange.ftl" />
               </field>
            </appearance>
         </form>
     </forms>
     </config>

Outcomes