AnsweredAssumed Answered

share-form-config.xml default tag

Question asked by km on Apr 4, 2013
Hi all,

I have added the tags and categories option for the advanced search form, but how can I define default values for tags or categories?


<form id="search">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="mimetype" />
               <show id="cm:modified" />
               <show id="cm:modifier" />
            <show id="cm:taggable" force="true" />
            <show id="cm:categories" force="true" />
            </field-visibility>
            <appearance>
               <field id="mimetype">
                  <control template="/org/alfresco/components/form/controls/mimetype.ftl" />
               </field>
               <field id="cm:modifier">
                  <control>
                     <control-param name="forceEditable">true</control-param>
                  </control>
               </field>
               <field id="cm:modified">
                  <control template="/org/alfresco/components/form/controls/daterange.ftl" />
               </field>
      <field id="cm:taggable">
         <control>
            <control-param name="compactMode">true</control-param>
            <control-param name="params">aspect=cm:taggable</control-param>
            <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param>
            <control-param name="createNewItemIcon">tag</control-param>
         </control>
      </field>
      <field id="cm:categories">
         <control>
            <control-param name="compactMode">true</control-param>
            <control-param name="showSubCategoriesOption">true</control-param>
         </control>
      </field>
            </appearance>

Outcomes