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">
<title>Content</title>
<parent>cm:cmobject</parent>
<properties>
<property name="cm:content">
<type>d:content</type>
<mandatory>false</mandatory>
<!— Index content in the background –>
<index enabled="true">
<atomic>true</atomic>
<stored>false</stored>
<tokenised>true</tokenised>
</index>
</property>
<property name="cm:dni">
<title>DNI</title>
<type>d:text</type>
<protected>true</protected>
</property>
</properties>
</type>
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">
<property-sheet>
<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" />
</property-sheet>
</config>
I want search for this property and add and create a new content with this property.Help me pleaseThanks