cancel
Showing results for 
Search instead for 
Did you mean: 

advanced search

rajat
Champ in-the-making
Champ in-the-making
I need to remove some values from document status field from my advanced search form.

Currently it is having selectmany.ftl as its control template.

I cannot remove the values from ciscoModel as they are required at other places and are directly going to affect them.

How can I remove this values without making changes in ciscoModel
6 REPLIES 6

mrogers
Star Contributor
Star Contributor
Yes file, title, description, content + other properties, type information, derived information, path

http://wiki.alfresco.com/wiki/Search

rajat
Champ in-the-making
Champ in-the-making
I need to remove some values from document status field from my advanced search form.

Currently it is having selectmany.ftl as its control template.

I cannot remove the values from ciscoModel as they are required at other places and are directly going to affect them.

How can I remove this values without making changes in ciscoModel

mitpatoliya
Star Collaborator
Star Collaborator
You can create your own ftl which will be replica of selectmany.ftl and filter out options which you do not want to show in that new ftl.Now you can override search form to use your custom ftl file for status field.

aaditvmajmudar
Confirmed Champ
Confirmed Champ
In your custom advance search form, you can pass values you want for you status as control parameter to selectmany.ftl like below.

<field…..>
           <control template="/org/alfresco/components/form/controls/selectmany.ftl">
      <control-param name="options">Status1,Status2,Status3</control-param>
      </control>
</field>

Hope this helps.

Thanks,

rajat
Champ in-the-making
Champ in-the-making
While searching for japanese characters, my code is working fine in my local and dev box.
But it is breaking in stage.

Even when the code of dev and stage are almost same.

Does anyone aware of such type of problem?

rajat
Champ in-the-making
Champ in-the-making
How can I map aspect type to content type?
So that any change in aspect value will reflect into change in content value also.