cancel
Showing results for 
Search instead for 
Did you mean: 

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

swemon
Champ on-the-rise
Champ on-the-rise
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>
1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator
Hello,

do you want to apply new length constraints to these fields or are you looking for their current constraints? I didn't get that with certainty from your post.
Those fields currently have no length constraints (apart from the technical constraints inherited by the database column type). If you want to add new constraints, you would have to adapt the contentModel.xml - but I'd advise against that as this will have global impact.

Regards
Axel