AnsweredAssumed Answered

Modifying Advanced Search form to include aspect properties

Question asked by ashokharnal on Aug 5, 2011
Latest reply on Aug 7, 2011 by ashokharnal
I am trying to modify Advanced Search Form for Share.
In my data model, for  cm:content type, there is an aspect kb:articletype with
one of the properties as kb:recordid.

I want to search for values given to property kb:recordid. I have modified the
share-config-custom.xml file as follows:

<config evaluator="model-type" condition="cm:content">
         <!– Search form –>
         <form id="search">
               <show id="kb:rbrecordid" />
               <field id="kb:rbrecordid" label="Record ID" >
      <control template="/org/alfresco/components/form/controls/textfield.ftl" />

Now when Alfresco is restarted, in the Alfresco Share, Advanced Search form,
besides the normal search fields of Keywords, Name, Title, Description, Mimetype,
Modifier date and Modifier, one other text box field with label "Record Id" appears.

However, a value in Record Id field is not returning any search results. Search result is 0.

Will be grateful to know what else to do to get the results?

Ashok Kumar Harnal