cancel
Showing results for 
Search instead for 
Did you mean: 

Customization Advanced Search

fidele
Champ in-the-making
Champ in-the-making
Hi everyone,

Someone can help me to perform this customization :
I 'm searching means to only show Additional Properties that are specific to the selected Content Type in the advanced search page.
I've found this topic in some posts in the forum but no one have giving the solution, so I try to repost it in hope that someone have resolved the problem.

Please help me (sample code, the way to do …..)  I've spent many time searching the solution on the net  Smiley Sad .

Thanks in advanced!

Fidele.
3 REPLIES 3

openpj
Elite Collaborator
Elite Collaborator
To add custom properties on Advanced Search in Alfresco Web Client you must edit web-client-config-custom.xml.
You can add your custom properties in advanced-search element, in this way:

<config evaluator="string-compare" condition="Advanced Search">
      <advanced-search>
         <content-types>
            <type name="my:contentType" />
         ….
         </content-types>
        <custom-properties>
         <meta-data type="my:contentType" property="my:propertyName" />
         …..
      </custom-properties>
Remember that your custom content model must extends the default Alfresco content type to allow these new properties work correctly in Web Client.
More details about Advanced Search Custom Attributes here:
http://wiki.alfresco.com/wiki/Advanced_Search_Custom_Attributes

Hope this helps.

fidele
Champ in-the-making
Champ in-the-making
To add custom properties on Advanced Search in Alfresco Web Client you must edit web-client-config-custom.xml.
You can add your custom properties in advanced-search element, in this way:

<config evaluator="string-compare" condition="Advanced Search">
      <advanced-search>
         <content-types>
            <type name="my:contentType" />
         ….
         </content-types>
        <custom-properties>
         <meta-data type="my:contentType" property="my:propertyName" />
         …..
      </custom-properties>
Remember that your custom content model must extends the default Alfresco content type to allow these new properties work correctly in Web Client.
More details about Advanced Search Custom Attributes here:
http://wiki.alfresco.com/wiki/Advanced_Search_Custom_Attributes

Hope this helps.

hi OpenPj,
thanks for your prompt response but my issue is beyond of this point. In fact, I see all my content type  in the select box above and all my properties in the additional options panel (and this is the issue, all the properties are shown in this panel).That I want to do is that :  when I select one I need that solely properties that belong to this selected content type will apprear.
How to implement this customization.
Thanks in advance.

prathibha
Champ in-the-making
Champ in-the-making
hi, i'm also facing the same problem with displaying the properties under additional options based on the selected content type. kindly let me any solution for this.