cancel
Showing results for 
Search instead for 
Did you mean: 

Adding Properties to Simple Search

roseta
Champ in-the-making
Champ in-the-making
In the wiki, it is said how to add properties (default content properties) to the simple search, but, I would like to add my own properties as well (previous customized by me, for instance I have a book class with a d:text ISBN property) . Is that possible? How should I write them? THANKS

http://wiki.alfresco.com/wiki/Web_Client_Customisation_FAQ#Adding_Properties_to_Simple_Search
3 REPLIES 3

jottley
Confirmed Champ
Confirmed Champ
Use your properties full qname from your custom model.

For example:

If your model declares your namespace like this

<namespaces>
        <namespace uri="http://www.example.com/model/content/1.0" prefix="ex" />
</namespaces>

and has a property of isbn

<property name="ex:isbn">
    <type>d:text</type>
</property>

Your simple search config would look like this

   <config>
      <client>
         <simple-search-additional-attributes>
            <qname>{http://www.example.com/model/content/1.0}isbn</qname>
         </simple-search-additional-attributes>
      </client>
   </config>

Jared

roseta
Champ in-the-making
Champ in-the-making
Thanks! I'm wondering if for other data types different than text is that possible too. I'll try it…

jottley
Confirmed Champ
Confirmed Champ
Yes.  Other data types will work as well.


Jared