cancel
Showing results for 
Search instead for 
Did you mean: 

Tagging & Associatons - Advanced Search

ddanninger
Champ in-the-making
Champ in-the-making
Hi,

i wanted to add the tag aspect to the advanced search. So i added to the "web-client-config-custom.xml" the field:

<config evaluator="string-compare" condition="Advanced Search">
      <advanced-search>
         <content-types>
            <type name="cx:memDoc" />
            <type name="cx:letDoc" />
            <type name="cx:agmDoc" />
            <type name="cx:calDoc" />
            <type name="cx:presDoc" />
            <type name="cx:tempDoc" />
            <type name="cx:invDoc" />
            <type name="cx:ptclDoc" />
            <type name="cx:ovDoc" />
            <type name="cx:arDoc" />
            <type name="cx:mrDoc" />
            <type name="cx:sdDoc" />
            <type name="cx:polDoc" />
            <type name="cx:adDoc" />
            <type name="cx:othDoc" />      
         </content-types>
         
         <custom-properties>
            <meta-data type="cx:doc" property="cx:doctype" display-label-id="doctype" />
            <meta-data type="cx:doc" property="cx:ctxEntity" display-label-id="ctxEntity" />
            <meta-data type="cx:doc" property="cx:mainAndSubCategory" display-label-id="mainAndSubCategory" />
            <meta-data type="cx:doc" property="cx:projectName" />
            
            <meta-data type="cx:counterPartyDoc" property="cx:counterParty" />
            
            <meta-data type="cx:doc" property="cx:author" />
            <meta-data type="cx:doc" property="cx:language" />
            
            <meta-data type="cx:signatureDateDoc" property="cx:signatureDate" />
            
            <meta-data type="cx:doc" property="cx:effectiveDate" />
            
            <meta-data type="cx:noticePeriodeDoc" property="cx:noticePeriode" />
            
            <meta-data type="cx:doc" property="cx:expiry" display-label-id="expiry" />
            <meta-data type="cx:doc" property="cx:expiryDate" display-label-id="expiryDate" />
            <meta-data type="cx:doc" property="cx:isInactive" display-label-id="isInactive" />
            
            <meta-data type="cx:doc" property="cx:reminder" display-label-id="reminder" />
            <meta-data type="cx:doc" property="cx:reminderNotice" display-label-id="reminderNotice" />            
            <meta-data type="cx:doc" property="cx:reminderFollowUp" display-label-id="reminderFollowUp" />   

            <meta-data aspect="cm:taggable" property="cm:taggable" />   

         </custom-properties>
      </advanced-search>
   </config>

It worked so far fine, but when i looked in the Advanced Search the Tag Field was not displayed by the Tag Component it was replaced by the Category Component

[img]http://www.may.co.at/fileadmin/images/Alfresco_Screenshots/advanced_search.png[/img]

Did i do something wrong? Or is it a bug in Alfresco?


The other question is, is it possible to add an association the the advanced search? For example i have a Association for Responsible Persons on a document.

Part of the Custom Content Model:

<associations>
<association name="cx:responsiblePerson">
               <title>Responsible</title>
               <source>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </source>
               <target>
                  <class>cm:person</class>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </target>
            </association></associations>


When i looked in the Wiki: http://wiki.alfresco.com/wiki/Advanced_Search_Custom_Attributes

There was no description for adding a Association to the advanced search.

Is it not possible yet (Will it be possible?) or did i do something wrong here too?

Best regards
Dominik

(Alfresco Community 3.2r2)
1 REPLY 1

guilherme_souza
Champ in-the-making
Champ in-the-making
I don't know exactly how to do this, but i know that you have to add some field controls. I've putted the tag aspect in the advanced search but in Alfresco Share, and i had the same problem, then i add some field controls and the tags had appeared.