Follow the steps below to display custom properties on advanced search screen:
1. The property which needs to be displayed on advanced search page requires modification in web-client-config.xml which is located at - ALFRESCO_TOMCAT_HOME/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/web-client-config.xml.
2. Locate following condition evaluator in web-client-config.xml -
<config evaluator=”string-compare” condition=”Advanced Search”>
3. Advanced search condition evaluator has <advanced-search> child tag which has <custom-properties> child tag.
4. <custom-properties> child tag is used to define custom properties which get displayed on advanced search screen. For example look at the following code snippet:
<meta-data aspect=”cm:algocustompayment” property=”cm:algopayment” />
Click here to view how custom aspect “cm:algocustompayment” and its properties can be created.
5. <meta-data> tag has two attribute aspect and property.
6. The aspect attribute of <meta-data> tag declares the name of the aspect which will appear in drop down on advanced search page. The text in the drop-down to be displayed will be fetched from the “title” tag defined for the aspect in defaultCustomModel.xml.
7. The property attribute of <meta-data> tag declares the property of the aspect which will appear in list of search fields.
NOTE: In this case value of the aspect is “cm:algocustompayment” which will add the human readable name of aspects e.g. “Payment Aspect” to drop down and value of property is “cm:algopayment” which will display the human readable name in search field i.e. “Payment Amount”.