cancel
Showing results for 
Search instead for 
Did you mean: 

Modify advanced search page

ribz33
Champ on-the-rise
Champ on-the-rise
Hi,

I want to modify web client advanced search…

First i had done my custom model with custom properties on search.
I want to have only my custom properties define in web-client-config-custom.xml. i know that i can modify web-client-config.xml but i want to know if there is a property to do that in my xml extension.

Then, where can we define if panel is expended or not.
Can i define it in properties ?

Thx
3 REPLIES 3

gavinc
Champ in-the-making
Champ in-the-making
Yes, you can configure the properties to appear in advanced search in web-client-config-custom.xml.

If you take a look at the sample file "web-client-config-custom.xml.sample" you'll see a section for advanced search which includes properties from the example model we ship.

The example is shown below:


<config evaluator="string-compare" condition="Advanced Search">
   <advanced-search>
      <content-types>
         <type name="my:sop" />
      </content-types>
      <custom-properties>
         <meta-data type="my:sop" property="my:authorisedBy" />
         <meta-data type="my:sop" property="my:publishedDate" />
         <meta-data aspect="my:imageClassification" property="my:resolution" />
      </custom-properties>
   </advanced-search>
</config>

As for expanding the panels, I'm afraid that is not possible via configuration at this time.

ribz33
Champ on-the-rise
Champ on-the-rise
But oyur code will add properties to custom properties already define in model… me i want to erase this properties to have only mine!

It here a way to do that ?

gavinc
Champ in-the-making
Champ in-the-making
OK I see, no unfortunately you can not remove properties from the advanced search page via configuration.

You will have to override the advanced saerch page itself. This should also be possible in an "extension manner", have a look at http://wiki.alfresco.com/wiki/Customising_An_Alfresco_JSP for an example.