AnsweredAssumed Answered

Add and search content by a custom property HELP

Question asked by manuel on Jun 16, 2006
Latest reply on Jun 20, 2006 by gavinc
First, sorry for my english.

Hello, I have added a new property to the model of content in the file WEB-INF\classes\alfresco\model\contentModel.xml

     <type name="cm:content">
            <property name="cm:content">
               <!— Index content in the background –>
               <index enabled="true">
       <property name="cm:dni">

The new property is dni.

Also I have added the property in the file WEB-INF\classes\alfresco\web-client-config-properties.xml in order that it show in the webclient.

   <config evaluator="node-type" condition="content">
      <show-property name="dni" showInEditMode="false" />
         <show-property name="name" showInEditMode="false" />
         <show-property name="mimetype" displayLabelId="mimetype" converter="org.alfresco.faces.MimeTypeConverter" showInEditMode="false" />
         <show-property name="title" showInEditMode="false" />
         <show-property name="description" showInEditMode="false" />
         <show-property name="size" displayLabelId="size" converter="org.alfresco.faces.ByteSizeConverter" showInEditMode="false" />

I want search for this property and add and create a new content with this property.

Help me please