cancel
Showing results for 
Search instead for 
Did you mean: 

cm:folder EDIT METADATA

gukguk
Champ in-the-making
Champ in-the-making
Hi !

Is there a way to add aspect to the folder edit metadata?

I added this element inside share custom config xml but it doesn't work
Where can i add an aspect field in folder edit metadata ?
Thanks
<config evaluator="node-type" condition="cm:folder">
      <forms>
         <!– Default form configuration for the cm:folder type –>
         <form>
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />

               <!– tags and categories –>
               <show id="cm:taggable" for-mode="edit" force="true" />
               <show id="cm:categories" />

               <show id="emailserver:aliasable"/>

               <!– cm:dublincore aspect –>
               <show id="cmSmiley Tongueublisher"/>
               <show id="cm:contributor"/>
               <show id="cm:type"/>
               <show id="cm:identifier"/>
               <show id="cm:dcsource"/>
               <show id="cm:coverage"/>
               <show id="cm:rights"/>
               <show id="cm:subject"/>

               <!– cm:complianceable aspect –>
               <show id="cm:removeAfter" />

               <!– cm:effectivity aspect –>
               <show id="cm:from"/>
               <show id="cm:to"/>

               <!–  cm:summarizable aspect –>
               <show id="cm:summary" />

               <!– cm:translatable aspect –>
               <show id="cm:translations" />

               <!– cm:localizable aspect –>
               <show id="cm:locale" />

               <!– cmSmiley Surprisedwnable aspect –>
               <show id="cmSmiley Surprisedwner" />

               <!– cm:attachable aspect –>
               <show id="cm:attachments" />

               <!– cm:emailed aspect –>
               <show id="cmSmiley Surprisedriginator" />
               <show id="cm:addressee" />
               <show id="cm:addressees" />
               <show id="cm:sentdate" />
               <show id="cm:subjectline" />

               <!– exif:exif aspect –>
               <show id="exif:dateTimeOriginal" />
               <show id="exifSmiley TongueixelXDimension" />
               <show id="exifSmiley TongueixelYDimension" />
               <show id="exif:exposureTime" />
               <show id="exif:fNumber" />
               <show id="exif:flash" />
               <show id="exif:focalLength" />
               <show id="exif:isoSpeedRatings" />
               <show id="exif:manufacturer" />
               <show id="exif:model" />
               <show id="exif:software" />
               <show id="exifSmiley Surprisedrientation" />
               <show id="exif:xResolution" />
               <show id="exif:yResolution" />
               <show id="exif:resolutionUnit" />

               <!– cm:geographic aspect –>
               <show id="cm:latitude" />
               <show id="cm:longitude" />
            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:description">
                  <control>
                     <control-param name="activateLinks">true</control-param>
                  </control>
               </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>
               </field>
            </appearance>
         </form>

         <!– Document Library pop-up Edit Metadata form –>
         <form id="doclib-simple-metadata">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <!– tags and categories –>
               <show id="cm:taggable" for-mode="edit" force="true" />
               <show id="cm:categories" />
            </field-visibility>
            <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" />
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:description">
                  <control>
                     <control-param name="activateLinks">true</control-param>
                  </control>
               </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>
               </field>
            </appearance>
         </form>
      </forms>
   </config>
1 REPLY 1

jpotts
World-Class Innovator
World-Class Innovator
Yes, you can add aspect-based properties to any form using share-config-custom.xml. I may have missed it, but in the example you showed, did you put your aspect in there already? It looked like it was out-of-the-box.

To add your custom properties, add both a "show" element and a "field" element to the appropriate form config.

Jeff