cancel
Showing results for 
Search instead for 
Did you mean: 

Custom email action

nancyaggarwal
Champ in-the-making
Champ in-the-making
Hi All

I have to make a custom email action in more menu in document library section. I succeeded in showing the action in drop down menu by following the blog
http://ecmstuff.blogspot.in/2012/04/adding-document-library-actions-in.html

but when click on it, the form is not showing the labels in it.


How can i get the form with the labels (To, subject and body).



Thanks
Nancy


37 REPLIES 37

santoshbaradwaj
Champ in-the-making
Champ in-the-making
For that you have to develop your own presentation web script  with some custom fields

ecarbenay
Star Contributor
Star Contributor
Did you made changes into share-config-custom.xml as described in the Martin Bergljung article you pointed out ?
More precisely did you add the section

<config evaluator="string-compare" condition="send-as-email">
         <forms>
             <form>
                 <field-visibility>
                     <show id="to"/>
                     <show id="subject"/>
                     <show id="body_text"/>
                 </field-visibility>
                 <appearance>
                     <field id="to" label-id="send-as-email.field.to"/>
                     <field id="subject" label-id="send-as-email.field.subject"/>
                     <field id="body_text" label-id="send-as-email.field.body_text">
                         <control
template="/org/alfresco/components/form/controls/textarea.ftl" />
                     </field>
                 </appearance>
            </form>
        </forms>
    </config>


This section is responsible for the showing of the form associated with the action send-as-email in the article.


Thanks Emmanuel for your reply.

I have already added this section in share-config-custom.xml as pointed out in blog but still i am not able to see these label in the form.

Hi,

can you explain precisely what is not working ? You tell that the action is appearing in the actions list for the document. When you click this action, what's happening ?
Do a form appears ?
Can you post the content of your share-config-custom.xml file ?

Hi

When i click on the action then only the name in the form appears not the whole form.

Below  is the my share-form-config.xml


<alfresco-config>

   <!– cm:content type (existing nodes) –>
   <config evaluator="node-type" condition="cm:content">
      <forms>
         <!– Default form configuration for the cm:content type –>
         <form>
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="mimetype" />
               <show id="cm:author" force="true" />
               <show id="size" for-mode="view" />
               <show id="cm:creator" for-mode="view" />
               <show id="cm:created" for-mode="view" />
               <show id="cm:modifier" for-mode="view" />
               <show id="cm:modified" for-mode="view" />
              
               <!– tags and categories –>
               <show id="cm:taggable" for-mode="edit" force="true" />
               <show id="cm:categories" />
              
               <!– 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" />

               <!– audio:audio aspect –>
               <show id="audio:album" />
               <show id="audio:artist" />
               <show id="audio:composer" />
               <show id="audio:engineer" />
               <show id="audio:genre" />
               <show id="audio:trackNumber" />
               <show id="audio:releaseDate" />
               <show id="audio:sampleRate" />
               <show id="audio:sampleType" />
               <show id="audio:channelType" />
               <show id="audio:compressor" />
              
               <!– cm:indexControl aspect –>
               <show id="cm:isIndexed" />
               <show id="cm:isContentIndexed" />
              
               <!– cm:geographic aspect –>
               <show id="cm:latitude" />
               <show id="cm:longitude" />
            </field-visibility>
            <appearance>
               <field id="cm:name">
                 <control>
                    <control-param name="maxLength">255</control-param>
                 </control>
               </field>
               <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="mimetype">
                  <control template="/org/alfresco/components/form/controls/mimetype.ftl" />
               </field>
               <field id="size">
                  <control template="/org/alfresco/components/form/controls/size.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>
               </field>
               <field id="cmSmiley Surprisedriginator" read-only="true" />
               <field id="cm:addressee" read-only="true" />
               <field id="cm:addressees" read-only="true" />
               <field id="cm:sentdate" read-only="true" />
               <field id="cm:subjectline" read-only="true" />
            </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:name">
                 <control>
                    <control-param name="maxLength">255</control-param>
                 </control>
               </field>
               <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 Inline Edit form –>
         <form id="doclib-inline-edit">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="cm:content" force="true" />
            </field-visibility>
            <appearance>
               <field id="cm:name">
                 <control>
                    <control-param name="maxLength">255</control-param>
                 </control>
               </field>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:content">
                  <control>
                     <control-param name="editorAppearance">explorer</control-param>
                     <control-param name="forceEditor">true</control-param>
                  </control>
               </field>
            </appearance>
         </form>
      </forms>
   </config>
  
   <!– cm:folder type (existing nodes) –>
   <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" />

               <!– emailserver:aliasable aspect –>
               <show id="emailserver:alias" />
            </field-visibility>
            <appearance>
               <field id="cm:name">
                 <control>
                    <control-param name="maxLength">255</control-param>
                 </control>
               </field>
               <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:name">
                 <control>
                    <control-param name="maxLength">255</control-param>
                 </control>
               </field>
               <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>

   <!– cm:content type (creating nodes) –>
   <config evaluator="model-type" condition="cm:content">
      <forms>
         <!– Default Create Content form –>
         <form>
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="cm:content" force="true" />
               <show id="mimetype" />
               <show id="app:editInline" force="true" />
            </field-visibility>
            <appearance>
               <field id="cm:name">
                 <control>
                    <control-param name="maxLength">255</control-param>
                 </control>
               </field>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:content">
                  <control>
                     <control-param name="editorAppearance">explorer</control-param>
                  </control>
               </field>
               <field id="mimetype">
                  <control template="/org/alfresco/components/form/controls/hidden.ftl">
                     <control-param name="contextProperty">mimeType</control-param>
                  </control>
               </field>
               <field id="app:editInline">
                  <control template="/org/alfresco/components/form/controls/hidden.ftl">
                     <control-param name="contextProperty">editInline</control-param>
                  </control>
               </field>
            </appearance>
         </form>
         <!– Document Library Create Google Doc form –>
         <form id="doclib-create-googledoc">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="cm:content" force="true" />
               <show id="mimetype" />
               <show id="gd:googleEditable" force="true" />
            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:content">
                  <control>
                     <control-param name="editorAppearance">none</control-param>
                     <control-param name="forceContent">true</control-param>
                  </control>
               </field>
               <field id="mimetype">
                  <control template="/org/alfresco/components/form/controls/hidden.ftl">
                     <control-param name="contextProperty">mimeType</control-param>
                  </control>
               </field>
               <field id="gd:googleEditable">
                  <control template="/org/alfresco/components/form/controls/hidden.ftl">
                     <control-param name="contextProperty">googleEditable</control-param>
                  </control>
               </field>
            </appearance>
         </form>
         <!– Search form –>
         <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:author" force="true" />
               <show id="cm:creator"/>
            </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>
            </appearance>
         </form>
      </forms>
   </config>

   <!– cm:folder type (creating nodes) –>
   <config evaluator="model-type" condition="cm:folder">
      <forms>
         <!– Document Library Common form –>
         <form id="doclib-common">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
            </field-visibility>
            <create-form template="../documentlibrary/forms/doclib-common.ftl" />
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
            </appearance>
         </form>
         <!– Search form –>
         <form id="search">
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
            </field-visibility>
         </form>
      </forms>
   </config>

   <!– trx:transferTarget content type (editing) –>
   <config evaluator="node-type" condition="trx:transferTarget">
      <forms>
         <form>
              <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="trx:endpointhost" />
               <show id="trx:endpointport" />
               <show id="trx:endpointpath" />
               <show id="trx:endpointprotocol" />
               <show id="trx:username" for-mode="edit"/>
               <show id="trxSmiley Tongueassword" for-mode="edit"/>
               <show id="trx:enabled" force="true" />
            </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="trxSmiley Tongueassword">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl">
                     <control-param name="password">true</control-param>
                  </control>
               </field>
            </appearance>
         </form>
      </forms>
   </config>
  
   <!– trx:fileTransferTarget content type (editing) –>
   <config evaluator="node-type" condition="trx:fileTransferTarget">
      <forms>
         <form>
              <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="trx:endpointhost" />
               <show id="trx:endpointport" />
               <show id="trx:endpointpath" />
               <show id="trx:endpointprotocol" />
               <show id="trx:username" for-mode="edit"/>
               <show id="trxSmiley Tongueassword" for-mode="edit"/>
               <show id="trx:fileTransferRootNode" />
               <show id="trx:enabled" force="true" />
            </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="trxSmiley Tongueassword">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl">
                     <control-param name="password">true</control-param>
                  </control>
               </field>
            </appearance>
         </form>
      </forms>
   </config>


   <!– Publishing Channels Form Config –>

   <config evaluator="node-type" condition="flickrSmiley Very HappyeliveryChannel">
      <forms>
         <form>
            <field-visibility>
               <show id="cm:name" />
            </field-visibility>
         </form>
      </forms>
   </config>

   <config evaluator="node-type" condition="youtubeSmiley Very HappyeliveryChannel">
      <forms>
         <form>
            <field-visibility>
               <show id="cm:name" />
            </field-visibility>
         </form>
      </forms>
   </config>

   <config evaluator="node-type" condition="slideshareSmiley Very HappyeliveryChannel">
      <forms>
         <form>
            <field-visibility>
               <show id="cm:name" />
            </field-visibility>
         </form>
      </forms>
   </config>

   <config evaluator="node-type" condition="facebookSmiley Very HappyeliveryChannel">
      <forms>
         <form>
            <field-visibility>
               <show id="cm:name" />
            </field-visibility>
         </form>
      </forms>
   </config>

   <config evaluator="node-type" condition="twitterSmiley Very HappyeliveryChannel">
      <forms>
         <form>
            <field-visibility>
               <show id="cm:name" />
            </field-visibility>
         </form>
      </forms>
   </config>

   <config evaluator="node-type" condition="linkedinSmiley Very HappyeliveryChannel">
      <forms>
         <form>
            <field-visibility>
               <show id="cm:name" />
            </field-visibility>
         </form>
      </forms>
   </config>

  
   <!– JMX Form Config –>
  
   <!– Runtime –>
   <config evaluator="string-compare" condition="Alfresco:Name=Runtime">
      <forms>
         <form>
            <field-visibility>
               <show id="FreeMemory" />
               <show id="MaxMemory" />
               <show id="TotalMemory" />
            </field-visibility>
            <appearance>
               <set id="runtime" label-id="form.set.general" template="/org/alfresco/components/form/2-column-set.ftl" />
               <field id="FreeMemory" label-id="runtime.field.FreeMemory" set="runtime" />
               <field id="MaxMemory" label-id="runtime.field.MaxMemory" set="runtime" />
               <field id="TotalMemory" label-id="runtime.field.TotalMemory" set="runtime" />
            </appearance>
         </form>
      </forms>
   </config>

   <!– Repository Descriptor Current –>
   <config evaluator="string-compare" condition="Alfresco:Name=RepositoryDescriptor,Type=Current">
      <forms>
         <form>
            <field-visibility>
               <show id="Id" />
               <show id="Schema" />
               <show id="Version" />
               <show id="VersionLabel" />
               <show id="VersionMajor" />
               <show id="VersionMinor" />
               <show id="VersionRevision" />
               <show id="VersionBuild" />
               <show id="VersionNumber" />
            </field-visibility>
            <appearance>
               <set id="" appearance="title" label-id="form.set.general" template="/org/alfresco/components/form/2-column-set.ftl" />
               <set id="version" appearance="title" label-id="repository-server.set.version" template="/org/alfresco/components/form/2-column-set.ftl" />
               <field id="Id" label-id="repository-server.field.Id" />
               <field id="Schema" label-id="repository-server.field.Schema" />
               <field id="Version" label-id="repository-server.field.Version" set="version"/>
               <field id="VersionLabel" label-id="repository-server.field.VersionLabel" set="version" />
               <field id="VersionMajor" label-id="repository-server.field.VersionMajor" set="version" />
               <field id="VersionMinor" label-id="repository-server.field.VersionMinor" set="version" />
               <field id="VersionRevision" label-id="repository-server.field.VersionRevision" set="version" />
               <field id="VersionBuild" label-id="repository-server.field.VersionBuild" set="version" />
               <field id="VersionNumber" label-id="repository-server.field.VersionNumber" set="version" />
            </appearance>
         </form>
      </forms>
   </config>

   <!– Repository Descriptor Installed –>
   <config evaluator="string-compare" condition="Alfresco:Name=RepositoryDescriptor,Type=Initially Installed">
      <forms>
         <form>
            <field-visibility>
               <show id="Id" />
               <show id="Schema" />
               <show id="Version" />
               <show id="VersionLabel" />
               <show id="VersionMajor" />
               <show id="VersionMinor" />
               <show id="VersionRevision" />
               <show id="VersionBuild" />
               <show id="VersionNumber" />
            </field-visibility>
            <appearance>
               <set id="" appearance="title" label-id="form.set.general" template="/org/alfresco/components/form/2-column-set.ftl" />
               <set id="version" appearance="title" label-id="repository-installed.set.version" template="/org/alfresco/components/form/2-column-set.ftl" />

               <field id="Id" label-id="repository-installed.field.Id" />
               <field id="Schema" label-id="repository-installed.field.Schema" />

               <field id="Version" label-id="repository-installed.field.Version" set="version" />
               <field id="VersionLabel" label-id="repository-installed.field.VersionLabel" set="version" />
               <field id="VersionMinor" label-id="repository-installed.field.VersionMinor" set="version" />
               <field id="VersionMajor" label-id="repository-installed.field.VersionMajor" set="version" />
               <field id="VersionRevision" label-id="repository-installed.field.VersionRevision" set="version" />
               <field id="VersionBuild" label-id="repository-installed.field.VersionBuild" set="version" />
               <field id="VersionNumber" label-id="repository-installed.field.VersionNumber" set="version" />
            </appearance>
         </form>
      </forms>
   </config>

   <!– Authority –>
   <config evaluator="string-compare" condition="Alfresco:Name=Authority">
      <forms>
         <form>
            <field-visibility>
               <show id="NumberOfGroups" />
               <show id="NumberOfUsers" />
            </field-visibility>
            <appearance>
                <set id="authorities" appearance="title" label-id="form.set.general" template="/org/alfresco/components/form/2-column-set.ftl" />
                <field id="NumberOfGroups" label-id="authority.field.NumberOfGroups" set="authorities" />
                <field id="NumberOfUsers" label-id="authority.field.NumberOfUsers" set="authorities" />
            </appearance>
         </form>
      </forms>
   </config>

   <!– License Descriptor –>
   <config evaluator="string-compare" condition="Alfresco:Name=License">
      <forms>
         <form>
            <field-visibility>
               <show id="Subject" />
               <show id="Days" />
               <show id="Holder" />
               <show id="ValidUntil" />
               <show id="LicenseMode" />
               <show id="MaxDocs" />
               <show id="MaxUsers" />
               <show id="RemainingDays" />
               <show id="Issued" />
               <show id="Issuer" />
               <show id="HeartBeatDisabled" />
               <show id="CloudSyncKeyAvailable" />
               <show id="mbean_operations" for-mode="edit" />
            </field-visibility>
            <appearance>
               <set id="license" appearance="title" label-id="form.set.general" template="/org/alfresco/components/form/2-column-set.ftl" />
               <set id="operations" appearance="" />
               <field id="Subject" label-id="license.field.Subject" set="license" />
               <field id="Days" label-id="license.field.Days" set="license" />
               <field id="Holder" label-id="license.field.Holder" set="license" />
               <field id="ValidUntil" label-id="license.field.ValidUntil" set="license" />
               <field id="LicenseMode" label-id="license.field.LicenseMode" set="license" />
               <field id="MaxDocs" label-id="license.field.MaxDocs" set="license" />
               <field id="MaxUsers" label-id="license.field.MaxUsers" set="license" />
               <field id="RemainingDays" label-id="license.field.RemainingDays" set="license" />
               <field id="Issued" label-id="license.field.Issued" set="license" />
               <field id="Issuer" label-id="license.field.Issuer" set="license" />
               <field id="HeartBeatDisabled" label-id="license.field.HeartBeatDisabled" set="license">
                  <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>
               <field id="CloudSyncKeyAvailable" label-id="license.field.CloudSyncKeyAvailable" set="license">
                  <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>
               <field id="mbean_operations" set="operations" />
            </appearance>

         </form>
      </forms>
   </config>

   <!– OpenOffice Jodconverter (subsystem) –>
   <config evaluator="string-compare" condition="Alfresco:Type=Configuration,Category=OOoJodconverter,id1=default">
      <forms>
         <form>
            <field-visibility>
               <show id="jodconverter.enabled" />
               <show id="jodconverter.maxTasksPerProcess" />
               <show id="jodconverter.officeHome" />
               <show id="jodconverter.portNumbers" />
               <show id="jodconverter.taskExecutionTimeout" />
               <show id="jodconverter.taskQueueTimeout" />
            </field-visibility>
            <appearance>
               <set id="openoffice_jod" appearance="title" label-id="form.set.general" template="/org/alfresco/components/form/2-column-set.ftl" />
               <field id="jodconverter.enabled" label-id="ooojodconverter.field.jodconverter.enabled" set="openoffice_jod">
                 <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>
               <field id="jodconverter.maxTasksPerProcess" label-id="ooojodconverter.field.jodconverter.maxTasksPerProcess" set="openoffice_jod" />
               <field id="jodconverter.officeHome" label-id="ooojodconverter.field.jodconverter.officeHome" set="openoffice_jod" />
               <field id="jodconverter.portNumbers" label-id="ooojodconverter.field.jodconverter.portNumbers" set="openoffice_jod" />
               <field id="jodconverter.taskExecutionTimeout" label-id="ooojodconverter.field.jodconverter.taskExecutionTimeout" set="openoffice_jod" />
               <field id="jodconverter.taskQueueTimeout" label-id="ooojodconverter.field.jodconverter.taskQueueTimeout" set="openoffice_jod" />
            </appearance>
         </form>
      </forms>
   </config>

   <!– OpenOffice (Subsystem) –>
   <config evaluator="string-compare" condition="Alfresco:Type=Configuration,Category=OOoDirect,id1=default">
      <forms>
         <form>
            <field-visibility>
               <show id="ooo.enabled" />
               <show id="ooo.exe" />
               <show id="ooo.host" />
               <show id="ooo.port" />
            </field-visibility>
            <appearance>
               <set id="openoffice" appearance="title" label-id="form.set.general" template="/org/alfresco/components/form/2-column-set.ftl" />
               <field id="ooo.enabled" label-id="openoffice-subsystem.field.ooo.enabled" set="openoffice">
                  <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>
               <field id="ooo.exe" label-id="openoffice-subsystem.field.ooo.exe" set="openoffice" />
               <field id="ooo.host" label-id="openoffice-subsystem.field.ooo.host" set="openoffice" />
               <field id="ooo.port" label-id="openoffice-subsystem.field.ooo.port" set="openoffice" />
            </appearance>
         </form>
      </forms>
   </config>


   <!– OpenOffice (non-Subsystem) –>
   <config evaluator="string-compare" condition="Alfresco:Name=OpenOffice">
      <forms>
         <form>
            <field-visibility>
               <show id="available" />
               <show id="ooName" />
               <show id="ooOpenSourceContext" />
               <show id="ooSetupExtension" />
               <show id="ooSetupVersion" />
               <show id="ooSetupVersionAboutBox" />
               <show id="ooXMLFileFormatName" />
               <show id="ooXMLFileFormatVersion" />
            </field-visibility>
            <appearance>
               <set id="openoffice" appearance="title" label-id="form.set.general" template="/org/alfresco/components/form/2-column-set.ftl" />
               <field id="available" appearance="title" label-id="openoffice.field.available" set="openoffice" />
               <field id="ooName" label-id="openoffice.field.ooName" set="openoffice" />
               <field id="ooOpenSourceContext" label-id="openoffice.field.ooOpenSourceContext" set="openoffice" />
               <field id="ooSetupExtension" label-id="openoffice.field.ooSetupExtension" set="openoffice" />
               <field id="ooSetupVersion" label-id="openoffice.field.ooSetupVersion" set="openoffice" />
               <field id="ooSetupVersionAboutBox" label-id="openoffice.field.ooSetupVersionAboutBox" set="openoffice" />
               <field id="ooXMLFileFormatName" label-id="openoffice.field.ooXMLFileFormatName" set="openoffice" />
               <field id="ooXMLFileFormatVersion" label-id="openoffice.field.ooXMLFileFormatVersion" set="openoffice" />
            </appearance>
         </form>
      </forms>
   </config>

   <!– pdf2swf –>
   <config evaluator="string-compare" condition="Alfresco:Name=ContentTransformer,Type=pdf2swf">
      <forms>
         <form>
            <field-visibility>
               <show id="Available" />
               <show id="VersionString" />
            </field-visibility>
            <appearance>
               <set id="" appearance="title" label-id="form.set.general" template="/org/alfresco/components/form/2-column-set.ftl" />
               <field id="VersionString" label-id="pdf2swf.field.VersionString" read-only="true" />
               <field id="Available" label-id="pdf2swf.field.Available" read-only="true" >
                  <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>
            </appearance>
         </form>
      </forms>
   </config>

   <!– ImageMagick –>
   <config evaluator="string-compare" condition="Alfresco:Name=ContentTransformer,Type=ImageMagick">
      <forms>
         <form>
            <field-visibility>
               <show id="Available" />
               <show id="VersionString" />
            </field-visibility>
            <appearance>
               <set id="imagemagick" appearance="title" label-id="form.set.general" template="/org/alfresco/components/form/2-column-set.ftl" />
               <field id="Available" label-id="transformer-imagemagick.field.Available" read-only="true" set="imagemagick">
                  <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>
               <field id="VersionString" label-id="transformer-imagemagick.field.VersionString" read-only="true" set="imagemagick" />
            </appearance>
         </form>
      </forms>
   </config>

   <!– Fileservers –>
   <config evaluator="string-compare" condition="Alfresco:Type=Configuration,Category=fileServers,id1=default">
      <forms>
         <form>
            <field-visibility>
               <show id="filesystem.name" />
              
               <show id="cifs.enabled" />
               <show id="cifs.hostannounce" />
               <show id="cifs.serverName" />
               <show id="cifs.domain" />
               <show id="cifs.sessionTimeout" />

               <show id="ftp.enabled" />
               <show id="ftp.port" />
               <show id="ftp.dataPortFrom" />
               <show id="ftp.dataPortTo" />
            </field-visibility>
            <appearance>
               <set id="filesystem" appearance="title" label-id="fileservers.set.filesystem" template="/org/alfresco/components/form/2-column-set.ftl" />
               <set id="cifs" appearance="title" label-id="fileservers.set.cifs" template="/org/alfresco/components/form/2-column-set.ftl" />
               <set id="ftp" appearance="title" label-id="fileservers.set.ftp" template="/org/alfresco/components/form/2-column-set.ftl" />

               <field id="filesystem.name" label-id="fileservers.field.filesystem.name" description-id="fileservers.field.filesystem.name.description"
                      set="filesystem">
                  <control>
                    <control-param name="maxLength">1024</control-param>
                 </control>
               </field>

               <field id="cifs.enabled" label-id="fileservers.field.cifs.enabled" set="cifs">
                 <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>
               <field id="cifs.serverName" label-id="fileservers.field.cifs.serverName" set="cifs">
                 <control>
                    <control-param name="maxLength">1024</control-param>
                 </control>
               </field>
               <field id="cifs.domain" label-id="fileservers.field.cifs.domain" set="cifs">
                  <control>
                    <control-param name="maxLength">1024</control-param>
                 </control>
               </field>
               <field id="cifs.hostannounce" label-id="fileservers.field.cifs.hostannounce" set="cifs">
                  <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>
               <field id="cifs.sessionTimeout" label-id="fileservers.field.cifs.sessionTimeout" set="cifs" />

               <field id="ftp.enabled" label-id="fileservers.field.ftp.enabled" set="ftp">
                 <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>
               <field id="ftp.port" label-id="fileservers.field.ftp.port" set="ftp" />
               <field id="ftp.dataPortFrom" label-id="fileservers.field.ftp.dataPortFrom" set="ftp" />
               <field id="ftp.dataPortTo" label-id="fileservers.field.ftp.dataPortTo" set="ftp" />
            </appearance>
         </form>
      </forms>
   </config>
  
   <!– Sysadmin –>
   <config evaluator="string-compare" condition="Alfresco:Type=Configuration,Category=sysAdmin,id1=default">
      <forms>
         <form>
            <field-visibility>
               <show id="alfresco.context" />
               <show id="alfresco.host" />
               <show id="alfresco.port" />
               <show id="alfresco.protocol" />
               <show id="share.context" />
               <show id="share.host" />
               <show id="share.port" />
               <show id="share.protocol" />
               <show id="server.allowedusers" />
               <show id="server.maxusers" />
               <show id="server.allowWrite" />
            </field-visibility>
            <appearance>
               <set id="sysAdmin" appearance="title" label-id="form.set.general"
                    template="/org/alfresco/components/form/2-column-set.ftl" />
               <field id="alfresco.context" label-id="sysadmin.field.alfresco.context" set="sysAdmin" />
               <field id="alfresco.host" label-id="sysadmin.field.alfresco.host" set="sysAdmin" />
               <field id="alfresco.port" label-id="sysadmin.field.alfresco.port" set="sysAdmin" />
               <field id="alfresco.protocol" label-id="sysadmin.field.alfresco.protocol" set="sysAdmin">
                 <control template="/org/alfresco/components/form/controls/selectone.ftl">
                    <control-param name="options">http|http,https|https</control-param>
                 </control>
               </field>
               <field id="server.allowedusers" label-id="sysadmin.field.server.allowedusers" set="sysAdmin" />
               <field id="server.maxusers" label-id="sysadmin.field.server.maxusers" set="sysAdmin" />
               <field id="server.allowWrite" label-id="sysadmin.field.server.transaction.allow-writes" set="sysAdmin">
                  <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>
               <field id="share.context" label-id="sysadmin.field.share.context" set="sysAdmin" />
               <field id="share.host" label-id="sysadmin.field.share.host" set="sysAdmin" />
              
               <field id="share.port" label-id="sysadmin.field.share.port" set="sysAdmin">
                  <constraint-handlers>
                     <constraint type="NUMBER" validation-handler="Alfresco.forms.validation.number" event="keyup" />
                  </constraint-handlers>
               </field>
              
               <field id="share.protocol" label-id="sysadmin.field.share.protocol" set="sysAdmin">
                 <control template="/org/alfresco/components/form/controls/selectone.ftl">
                    <control-param name="options">http|http,https|https</control-param>
                 </control>
               </field>
            </appearance>
         </form>
      </forms>
   </config>

   <!– Inbound Email –>
   <config evaluator="string-compare" condition="Alfresco:Type=Configuration,Category=email,id1=inbound">
      <forms>
         <form>
            <field-visibility>
               <show id="email.inbound.enabled" />
               <show id="email.inbound.unknownUser" />
              
               <show id="email.server.enabled" />
               <show id="email.server.allowed.senders" />
               <show id="email.server.blocked.senders" />      
               <show id="email.server.domain" />
               <show id="email.server.port" />
               <show id="email.server.connections.max" />
               <show id="email.server.enableTLS" />
               <show id="email.server.requireTLS" />
               <show id="email.server.hideTLS" />
              
            </field-visibility>
            <appearance>
               <set id="inbound" appearance="title" label-id="email-inbound.set.service"
                    template="/org/alfresco/components/form/2-column-set.ftl" />
               <set id="inbound-server" appearance="title" label-id="email-inbound.set.server"
                    template="/org/alfresco/components/form/2-column-set.ftl" />
               <set id="inbound-tls" appearance="title" label-id="email-inbound.set.tls"
                    template="/org/alfresco/components/form/3-column-set.ftl" />    
               <field id="email.inbound.enabled" label-id="email-inbound.field.email.inbound.enabled" set="inbound">
                  <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>
               <field id="email.inbound.unknownUser" label-id="email-inbound.field.email.inbound.unknownUser" set="inbound" />
               <field id="email.server.allowed.senders" label-id="email-inbound.field.email.server.allowed.senders" set="inbound-server" />
               <field id="email.server.blocked.senders" label-id="email-inbound.field.email.server.blocked.senders" set="inbound-server" />
               <field id="email.server.enabled" label-id="email-inbound.field.email.server.enabled" set="inbound-server">
                  <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>
               <field id="email.server.domain" label-id="email-inbound.field.email.server.domain" set="inbound-server" />
               <field id="email.server.port" label-id="email-inbound.field.email.server.port" set="inbound-server" />
               <field id="email.server.connections.max" label-id="email-inbound.field.email.server.connections.max" set="inbound-server" />
              
               <field id="email.server.enableTLS" label-id="email-inbound.field.email.server.enableTLS" set="inbound-tls" >
                  <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>
               <field id="email.server.requireTLS" label-id="email-inbound.field.email.server.requireTLS" set="inbound-tls" >
                  <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>
               <field id="email.server.hideTLS" label-id="email-inbound.field.email.server.hideTLS" set="inbound-tls" >
                  <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>
            </appearance>
         </form>
      </forms>
   </config>
  
   <!– Outbound Email –>
   <config evaluator="string-compare" condition="Alfresco:Type=Configuration,Category=email,id1=outbound">
      <forms>
         <form>
            <field-visibility>
               <show id="mail.host"/>
               <show id="mail.port" />
               <show id="mail.encoding" />
               <show id="mail.from.enabled" />
               <show id="mail.from.default" />
               <show id="mail.protocol" />
               <show id="mail.smtp.auth" />
               <show id="mail.smtps.auth" />
               <show id="mail.username" />
               <show id="mail.password" for-mode="edit" />
               <show id="mail.testmessage.send" />
               <show id="mail.testmessage.to" />
               <show id="mail.testmessage.subject" />
               <show id="mail.testmessage.send" />
               <show id="mail.testmessage.text" />
            </field-visibility>
            <appearance>
               <set id="" appearance="title" label-id="form.set.general"
                    template="/org/alfresco/components/form/2-column-set.ftl" />
               <set id="auth" appearance="title" label-id="email-outbound.set.auth" />
               <set id="testmessage" appearance="title" label-id="email-outbound.set.test-message" />
              
               <field id="mail.host" label-id="email-outbound.field.mail.host" />
               <field id="mail.port" label-id="email-outbound.field.mail.port" />
               <field id="mail.protocol" label-id="email-outbound.field.mail.protocol" />
               <field id="mail.encoding" label-id="email-outbound.field.mail.encoding" />
               <field id="mail.from.enabled" label-id="email-outbound.field.mail.from.enabled">
                  <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>
               <field id="mail.from.default" label-id="email-outbound.field.mail.from.default" />
               <field id="mail.smtp.auth" label-id="email-outbound.field.mail.smtp.auth" set="auth">
                  <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>
               <field id="mail.smtps.auth" label-id="email-outbound.field.mail.smtps.auth" set="auth">
                  <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>
          
               <field id="mail.username" label-id="email-outbound.field.mail.username" set="auth" />
               <field id="mail.password" label-id="email-outbound.field.mail.password" set="auth">
                  <control>
                     <control-param name="password">true</control-param>
                  </control>
               </field>
               <field id="mail.testmessage.send" label-id="email-outbound.field.mail.testmessage.send" set="testmessage">
                  <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>
               <field id="mail.testmessage.to" label-id="email-outbound.field.mail.testmessage.to" set="testmessage" />
               <field id="mail.testmessage.subject" label-id="email-outbound.field.mail.testmessage.subject" set="testmessage" />
               <field id="mail.testmessage.text" label-id="email-outbound.field.mail.testmessage.text" set="testmessage" />
            </appearance>
         </form>
      </forms>
   </config>
  
   <!– IMAP (Subsystem) –>
   <config evaluator="string-compare" condition="Alfresco:Type=Configuration,Category=imap,id1=default">
      <forms>
         <form>
            <field-visibility>
               <show id="imap.server.enabled" />
               <show id="imap.mail.from.default" />
               <show id="imap.mail.to.default" />
               <show id="imap.server.attachments.extraction.enabled" />
               <show id="imap.server.host" />
               <show id="imap.server.port" />
            </field-visibility>
            <appearance>
               <set id="imap" appearance="title" label-id="imap.set.imap" template="/org/alfresco/components/form/2-column-set.ftl" />

               <field id="imap.config.home.folderPath" label-id="imap.field.imap.config.home.folderPath" set="imap" />
               <field id="imap.config.home.rootPath" label-id="imap.field.imap.config.home.rootPath" set="imap" />
               <field id="imap.config.home.store" label-id="imap.field.imap.config.home.store" set="imap" />
               <field id="imap.server.attachments.extraction.enabled" label-id="imap.field.imap.server.attachments.extraction.enabled" set="imap" >
                    <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>
               <field id="imap.mail.from.default" label-id="imap.field.imap.mail.from.default" set="imap" />
               <field id="imap.mail.to.default" label-id="imap.field.imap.mail.to.default" set="imap" />
               <field id="imap.server.enabled" label-id="imap.field.imap.server.enabled" set="imap">
                 <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>
               <field id="imap.server.host" label-id="imap.field.imap.server.host" set="imap" />
               <field id="imap.server.port" label-id="imap.field.imap.server.port" set="imap" />
            </appearance>
         </form>
      </forms>
   </config>

   <!– ActivitiesFeed (Subsystem) –>
   <config evaluator="string-compare" condition="Alfresco:Type=Configuration,Category=ActivitiesFeed,id1=default">
      <forms>
         <form>
            <field-visibility>
               <show id="activities.feed.notifier.enabled" />
               <show id="activities.feed.notifier.repeatIntervalMins" />
               <show id="activities.feed.max.ageMins" />
               <show id="activities.feed.max.size" />
            </field-visibility>
            <appearance>
               <set id="activities" appearance="title" label-id="activities.set.activities" template="/org/alfresco/components/form/2-column-set.ftl" />

               <field id="activities.feed.notifier.enabled" label-id="activities.field.feed.notifier.enabled" set="activities">
                  <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>
               <field id="activities.feed.notifier.repeatIntervalMins" label-id="activities.field.feed.notifier.repeatIntervalMins" set="activities" />
               <field id="activities.feed.max.ageMins" label-id="activities.field.feed.max.ageMins" set="activities" />
               <field id="activities.feed.max.size" label-id="activities.field.feed.max.size" set="activities" />
            </appearance>
         </form>
      </forms>
   </config>
  
   <!– Subscriptions (subsystem) –>
   <config evaluator="string-compare" condition="Alfresco:Type=Configuration,Category=Subscriptions,id1=default">
      <forms>
         <form>
            <field-visibility>
               <show id="subscriptions.enabled" />
            </field-visibility>
            <appearance>
               <set id="subscriptions" appearance="title" label-id="form.set.general" template="/org/alfresco/components/form/2-column-set.ftl" />
               <field id="subscriptions.enabled" label-id="subscriptions.field.subscriptions.enabled" set="subscriptions">
                 <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>
            </appearance>
         </form>
      </forms>
   </config>
  
   <!– Google Docs (Subsystem) –>
   <config evaluator="string-compare" condition="Alfresco:Type=Configuration,Category=googledocs,id1=default">
      <forms>
         <form>
            <field-visibility>
               <show id="googledocs.googleeditable.enabled" />
               <show id="googledocs.username" />
               <show id="googledocs.password" for-mode="edit" />
            </field-visibility>
            <appearance>
               <set id="" appearance="title" label-id="form.set.general" />
               <set id="googledocs" appearance="" template="/org/alfresco/components/form/2-column-set.ftl" />

               <field id="googledocs.username" label-id="googledocs.field.username" set="googledocs" />
               <field id="googledocs.password" label-id="googledocs.field.password" set="googledocs">
                  <control>
                     <control-param name="password">true</control-param>
                  </control>
               </field>
               <field id="googledocs.googleeditable.enabled" label-id="googledocs.field.enabled">
                  <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>
            </appearance>
         </form>
      </forms>
   </config>
  
   <!– Workflow –>
   <config evaluator="string-compare" condition="Alfresco:Name=WorkflowInformation">
      <forms>
         <form>
            <field-visibility>
               <show id="ActivitiEngineEnabled" />
               <show id="ActivitiWorkflowDefinitionsVisible" />
               <show id="NumberOfActivitiTaskInstances" />
               <show id="NumberOfActivitiWorkflowDefinitionsDeployed" />
               <show id="NumberOfActivitiWorkflowInstances" />
               <show id="JBPMEngineEnabled" />
               <show id="JBPMWorkflowDefinitionsVisible" />
               <show id="NumberOfJBPMTaskInstances" />
               <show id="NumberOfJBPMWorkflowDefinitionsDeployed" />
               <show id="NumberOfJBPMWorkflowInstances" />
            </field-visibility>
            <appearance>
               <set id="activiti" appearance="title" label-id="workflow.set.engine.activiti"
                    template="/org/alfresco/components/form/2-column-set.ftl" />
               <set id="jbpm" appearance="title" label-id="workflow.set.engine.jbpm"
                    template="/org/alfresco/components/form/2-column-set.ftl" />
              
               <field id="ActivitiEngineEnabled" label-id="workflow.field.enabled.activiti" set="activiti">
                  <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>
               <field id="ActivitiWorkflowDefinitionsVisible" label-id="workflow.field.definitions.visible" set="activiti">
                  <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>
               <field id="JBPMEngineEnabled" label-id="workflow.field.enabled.jbpm" set="jbpm">
                  <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>
               <field id="JBPMWorkflowDefinitionsVisible" label-id="workflow.field.definitions.visible" set="jbpm">
                  <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>
               <field id="NumberOfActivitiTaskInstances" label-id="workflow.field.number.tasks" set="activiti" />
               <field id="NumberOfActivitiWorkflowDefinitionsDeployed" label-id="workflow.field.number.definitions" set="activiti" />
               <field id="NumberOfActivitiWorkflowInstances" label-id="workflow.field.number.workflows" set="activiti" />
               <field id="NumberOfJBPMTaskInstances" label-id="workflow.field.number.tasks" set="jbpm" />
               <field id="NumberOfJBPMWorkflowDefinitionsDeployed" label-id="workflow.field.number.definitions" set="jbpm" />
               <field id="NumberOfJBPMWorkflowInstances" label-id="workflow.field.number.workflows" set="jbpm" />
            </appearance>
         </form>
      </forms>
   </config>
  
   <!– Search (lucene) –>
   <config evaluator="string-compare" condition="Alfresco:Type=Configuration,Category=Search,id1=managed,id2=lucene">
      <forms>
         <form>
            <field-visibility>
               <show id="index.recovery.mode" />
               <show id="lucene.indexer.contentIndexingEnabled" />
               <show id="index.tracking.disableInTransactionIndexing" />
               <show id="dir.indexes" for-mode="view" />

               <show id="dir.indexes.backup" />
               <show id="index.backup.cronExpression" />

               <show id="fts.indexer.batchSize" />
               <show id="lucene.maxAtomicTransformationTime" />
               <show id="index.reindexMissingContent.cronExpression" />
               <show id="lucene.indexer.maxFieldLength" />
               <show id="lucene.indexer.mergerMaxMergeDocs" />
               <show id="lucene.indexer.mergerMergeFactor" />
            </field-visibility>
            <appearance>
               <set id="lucene" appearance="title" label-id="form.set.general" template="/org/alfresco/components/form/2-column-set.ftl" />
               <set id="lucene.backup" appearance="bordered-panel" label-id="lucene.set.backup" template="/org/alfresco/components/form/2-column-set.ftl" />
               <set id="lucene.advanced" appearance="bordered-panel" label-id="lucene.set.advanced" template="/org/alfresco/components/form/2-column-set.ftl" />
               <field id="dir.indexes" set="lucene" label-id="lucene.field.dir.indexes" />
               <field id="index.recovery.mode" set="lucene" label-id="lucene.field.index.recovery.mode">
                 <control template="/org/alfresco/components/form/controls/selectone.ftl">
                    <control-param name="options">VALIDATE|VALIDATE,AUTO|AUTO,FULL|FULL</control-param>
                 </control>
               </field>
               <field id="lucene.indexer.contentIndexingEnabled" set="lucene" label-id="lucene.field.lucene.indexer.contentIndexingEnabled" description-id="lucene.field.description.lucene.indexer.contentIndexingEnabled">
                  <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>
                <field id="index.tracking.disableInTransactionIndexing" set="lucene" label-id="lucene.field.index.tracking.disableInTransactionIndexing" >
                  <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>

               <field id="dir.indexes.backup" set="lucene.backup" label-id="lucene.backup.field.dir.indexes.backup" />
               <field id="index.backup.cronExpression" set="lucene.backup" label-id="lucene.backup.field.index.backup.cronExpression" />

               <field id="fts.indexer.batchSize" set="lucene.advanced" label-id="lucene.advanced.field.fts.indexer.batchSize" />
               <field id="lucene.maxAtomicTransformationTime" set="lucene.advanced" label-id="lucene.advanced.field.lucene.maxAtomicTransformationTime" />
               <field id="index.reindexMissingContent.cronExpression" set="lucene.advanced" label-id="lucene.advanced.field.index.reindexMissingContent.cronExpression" />
               <field id="lucene.indexer.maxFieldLength" set="lucene.advanced" label-id="lucene.advanced.field.indexer.maxFieldLength" />
               <field id="lucene.indexer.mergerMaxMergeDocs" set="lucene.advanced" label-id="lucene.field.indexer.mergerMaxMergeDocs" />
               <field id="lucene.indexer.mergerMergeFactor" set="lucene.advanced" label-id="lucene.field.indexer.mergerMergeFactor" />
            </appearance>
         </form>
      </forms>
   </config>

   <!– Search (solr) –>
   <config evaluator="string-compare" condition="Alfresco:Type=Configuration,Category=Search,id1=managed,id2=solr">
      <forms>
         <form>
            <field-visibility>
               <show id="search.solrTrackingSupport.enabled" />
               <show id="solr.host" />
               <show id="solr.port" />
               <show id="solr.port.ssl" />

               <show id="tracker.alfresco.active" for-mode="view" />
               <show id="tracker.alfresco.lag" for-mode="view" />
               <!– <show id="tracker.alfresco.lag.duration" /> –>
               <show id="tracker.alfresco.last.indexed.txn" for-mode="view" />
               <show id="tracker.alfresco.approx.txns.remaining" for-mode="view" />
               <show id="tracker.alfresco.approx.indexing.time.remaining" for-mode="view" />
              
               <show id="tracker.archive.active" for-mode="view" />
               <show id="tracker.archive.lag" for-mode="view" />
               <!– <show id="tracker.archive.lag.duration" /> –>
               <show id="tracker.archive.last.indexed.txn" for-mode="view" />
               <show id="tracker.archive.approx.txns.remaining" for-mode="view" />
               <show id="tracker.archive.approx.indexing.time.remaining" for-mode="view" />
              
               <!– Backup Properties –>
               <show id="solr.backup.alfresco.cronExpression" />
               <show id="solr.backup.alfresco.remoteBackupLocation" />
               <show id="solr.backup.alfresco.numberToKeep" />
               <show id="solr.backup.archive.cronExpression" />
               <show id="solr.backup.archive.remoteBackupLocation" />
               <show id="solr.backup.archive.numberToKeep" />

            </field-visibility>
            <appearance>
               <set id="solr" appearance="title" label-id="form.set.general" template="/org/alfresco/components/form/2-column-set.ftl" />
               <set id="solr.spacesstore" appearance="bordered-panel" label-id="solr.set.spacesstore" template="/org/alfresco/components/form/2-column-set.ftl" />
               <set id="solr.archivestore" appearance="bordered-panel" label-id="solr.set.archivestore" template="/org/alfresco/components/form/2-column-set.ftl" />

               <field id="search.solrTrackingSupport.enabled" set="solr" label-id="solr.field.search.solrTrackingSupport.enabled" help-id="solr.help.search.solrTrackingSupport.enabled">
                      <control template="/org/alfresco/components/form/controls/checkbox.ftl" />
               </field>
               <field id="solr.host" set="solr" label-id="solr.field.solr.host" help-id="solr.help.field.solr.host">
                      <control>
                         <control-param name="style">width: 250px;</control-param>
                      </control>
               </field>
               <field id="solr.port" set="solr" label-id="solr.field.solr.port" help-id="solr.help.field.solr.port">
                      <control>
                         <control-param name="style">width: 50px;</control-param>
                      </control>
               </field>
               <field id="solr.port.ssl" set="solr" label-id="solr.field.solr.port.ssl" help-id="solr.help.field.solr.port.ssl">
                      <control>
                         <control-param name="style">width: 50px;</control-param>
                      </control>
               </field>
               <field id="tracker.alfresco.active" set="solr.spacesstore" label-id="solr.field.tracker.alfresco.active">
                      <control template="/org/alfresco/components/form/controls/checkbox.ftl">
                         <control-param name="style">width: 50px;</control-param>
                      </control>
               </field>
               <field id="tracker.alfresco.lag" set="solr.spacesstore" label-id="solr.field.tracker.alfresco.lag" help-id="solr.help.field.tracker.alfresco.lag">
                      <control>
                         <control-param name="style">width: 100px;</control-param>
                      </control>
               </field>
               <field id="tracker.alfresco.lag.duration" set="solr.spacesstore" label-id="solr.field.tracker.alfresco.lag.duration"/>
               <field id="tracker.alfresco.last.indexed.txn" set="solr.spacesstore" label-id="solr.field.tracker.alfresco.last.indexed.txn" help-id="solr.help.field.tracker.alfresco.last.indexed.txn">
                      <control>
                         <control-param name="style">width: 100px;</control-param>
                      </control>
               </field>
               <field id="tracker.alfresco.approx.txns.remaining" set="solr.spacesstore" label-id="solr.field.tracker.alfresco.approx.txns.remaining" help-id="solr.help.field.tracker.alfresco.approx.txns.remaining">
                      <control>
                         <control-param name="style">width: 100px;</control-param>
                      </control>
               </field>
               <field id="tracker.alfresco.approx.indexing.time.remaining" set="solr.spacesstore" label-id="solr.field.tracker.alfresco.approx.indexing.time.remaining" help-id="solr.help.field.tracker.alfresco.approx.indexing.time.remaining">
                      <control>
                         <control-param name="style">width: 100px;</control-param>
                      </control>
               </field>
               <field id="tracker.archive.active" set="solr.archivestore" label-id="solr.field.tracker.archive.active">
                      <control template="/org/alfresco/components/form/controls/checkbox.ftl">
                         <control-param name="style">width: 50px;</control-param>
                      </control>
               </field>
               <field id="tracker.archive.lag" set="solr.archivestore" label-id="solr.field.tracker.alfresco.lag" help-id="solr.help.field.tracker.alfresco.lag">
                      <control>
                         <control-param name="style">width: 100px;</control-param>
                      </control>
               </field>
               <field id="tracker.archive.lag.duration" set="solr.archivestore" label-id="solr.field.tracker.archive.lag.duration"/>
               <field id="tracker.archive.last.indexed.txn" set="solr.archivestore" label-id="solr.field.tracker.archive.last.indexed.txn" help-id="solr.help.field.tracker.archive.last.indexed.txn">
                      <control>
                         <control-param name="style">width: 100px;</control-param>
                      </control>
               </field>
               <field id="tracker.archive.approx.txns.remaining" set="solr.archivestore" label-id="solr.field.tracker.archive.approx.txns.remaining" help-id="solr.help.field.tracker.archive.approx.txns.remaining">
                      <control>
                         <control-param name="style">width: 100px;</control-param>
                      </control>
               </field>
               <field id="tracker.archive.approx.indexing.time.remaining" set="solr.archivestore" label-id="solr.field.tracker.archive.approx.indexing.time.remaining" help-id="solr.help.field.tracker.archive.approx.indexing.time.remaining">
                      <control>
                         <control-param name="style">width: 100px;</control-param>
                      </control>
               </field>
               <field id="solr.backup.alfresco.cronExpression" set="solr.spacesstore" label-id="solr.field.solr.backup.alfresco.cronExpression">
                      <control>
                         <control-param name="style">width: 200px;</control-param>
                      </control>
               </field>
               <field id="solr.backup.alfresco.remoteBackupLocation" set="solr.spacesstore" label-id="solr.field.solr.backup.alfresco.remoteBackupLocation" help-id="solr.help.solr.backup.alfresco.remoteBackupLocation">
                      <control>
                         <control-param name="style">width: 325px;</control-param>
                      </control>
               </field>
               <field id="solr.backup.alfresco.numberToKeep" set="solr.spacesstore" label-id="solr.field.solr.backup.alfresco.numberToKeep" help-id="solr.help.solr.backup.alfresco.numberToKeep">
                      <control>
                         <control-param name="style">width: 50px;</control-param>
                      </control>
               </field>
               <field id="solr.backup.archive.cronExpression" set="solr.archivestore" label-id="solr.field.solr.backup.archive.cronExpression">
                      <control>
                         <control-param name="style">width: 200px;</control-param>
                      </control>
               </field>
               <field id="solr.backup.archive.remoteBackupLocation" set="solr.archivestore" label-id="solr.field.solr.backup.archive.remoteBackupLocation" help-id="solr.help.solr.backup.archive.remoteBackupLocation">
                      <control>
                         <control-param name="style">width: 325px;</control-param>
                      </control>
               </field>
               <field id="solr.backup.archive.numberToKeep" set="solr.archivestore" label-id="solr.field.solr.backup.archive.numberToKeep" help-id="solr.help.solr.backup.archive.numberToKeep">
                      <control>
                         <control-param name="style">width: 50px;</control-param>
                      </control>
               </field>
            </appearance>
         </form>
      </forms>
   </config>

   <!– Search (manager) –>
   <config evaluator="string-compare" condition="Alfresco:Type=Configuration,Category=Search,id1=manager">
      <forms>
         <form>
            <field-visibility>
               <show id="sourceBeanName" />
            </field-visibility>
            <appearance>
               <set id="searchmanager" appearance="title" label-id="form.set.general" template="/org/alfresco/components/form/2-column-set.ftl" />
               <field id="sourceBeanName" set="searchmanager" label-id="searchmanager.field.sourceBeanName">
                 <control template="/org/alfresco/components/form/controls/selectone.ftl">
                    <control-param name="options">lucene|Lucene,solr|Solr</control-param>
                 </control>
               </field>
            </appearance>
         </form>
      </forms>
   </config>

   <!– Transform Repo Action –>
   <config evaluator="string-compare" condition="transform">
     <forms>
        <form>
           <field-visibility>
              <show id="mime-type" />
              <show id="destination-folder" />
           </field-visibility>
           <appearance>
              <field id="mime-type" label-id="transform.field.mime-type" />
              <field id="destination-folder" label-id="transform.field.destination-folder" />
           </appearance>
        </form>
     </forms>
  </config>
 
   <!– Transform Image Repo Action –>
  <config evaluator="string-compare" condition="transform-image">
     <forms>
        <form>
           <field-visibility>
              <show id="mime-type" />
              <show id="convert-command" />
              <show id="destination-folder" />
           </field-visibility>
           <appearance>
              <field id="mime-type" label-id="transform-image.field.mime-type">
                 <control template="/org/alfresco/components/form/controls/selectone.ftl">
                   <control-param name="options">image/gif|GIF Image,image/jpeg|JPEG Image,image/png|PNG Image</control-param>
                </control>
              </field>
              <field id="convert-command" label-id="transform-image.field.convert-command" />
              <field id="destination-folder" label-id="transform-image.field.destination-folder" />
           </appearance>
        </form>
     </forms>
  </config>
 
   <!– Execute Script Repo Action –>
   <config evaluator="string-compare" condition="script">
      <forms>
         <form>
            <field-visibility>
               <show id="script-ref" />
            </field-visibility>
            <appearance>
               <field id="script-ref" label-id="script.field.script-ref"/>
            </appearance>
         </form>
      </forms>
   </config>
  
  <!– CLOUD-796 / ALF-16226 - for custom content type (after being sync'ed) - is there a better way –>
   <config evaluator="aspect" condition="sync:syncSetMemberNode">
      <forms>
         <form>
            <field-visibility>
                <hide id="syncSmiley SurprisedtherNodeRefString" />
                <hide id="sync:remoteModified" />
                <hide id="sync:remoteModifier" />
                <hide id="sync:syncRequested" />
                <hide id="sync:directSync" />
                <hide id="sync:syncOwner" />
                <hide id="sync:syncTime" />
                <hide id="sync:syncLock" />
            </field-visibility>
         </form>
      </forms>
   </config>
   <config evaluator="aspect" condition="sync:synced">
      <forms>
         <form>
            <field-visibility>
                <hide id="sync:thisVersionLabel" />
                <hide id="sync:remoteVersionLabel" />
            </field-visibility>
         </form>
      </forms>
   </config>
   <config evaluator="aspect" condition="sync:failed">
      <forms>
         <form>
            <field-visibility>
                <hide id="sync:errorCode" />
                <hide id="sync:errorDetails" />
                <hide id="sync:errorTime" />
            </field-visibility>
         </form>
      </forms>
   </config>
   <config evaluator="aspect" condition="sync:transientError">
      <forms>
         <form>
            <field-visibility>
                <hide id="sync:transientErrorCode" />
            </field-visibility>
         </form>
      </forms>
   </config>
  
  
    <config evaluator="string-compare" condition="send-as-email">
      <forms>
         <form>
            <field-visibility>
                <show id="to" />
                <show id="subject" />
                <show id="body_text" />
            </field-visibility>
             <appearance>
               <field id="to" label-id="send-as-email.field.to"/>
               <field id="subject" label-id="send-as-email.field.subject"/>
               <field id="body_text" label-id="send-as-email.field.body_text"/>
                 <control template="/org/alfresco/components/form/controls/textarea.ftl" />
            </appearance>
         </form>
      </forms>
   </config>
  
</alfresco-config>



ecarbenay
Star Contributor
Star Contributor
Hi,

for more readability please place your code or configuration into code tags.

It seems you placed your config into the wrong file : this piece of configuration has to be in share-config-custom.xml, where you have placed the other config sections described in Martin's article.
Please can you place it in the share-config-custom.xml file, and test ?
If it's still not working, can you give the content of your share-config-custom.xml file ?

hi

I have placed the content in the share-config-custom.xml and still i am having the same problem.

Below is my share-config-custom.xml file and i have also attached the screenshot of the form which i am getting while clicking on the action.



<alfresco-config>

   <!– Global config section –>
   <config replace="true">
      <flags>
         <!–
            Developer debugging setting to turn on DEBUG mode for client scripts in the browser
         –>
         <client-debug>false</client-debug>

         <!–
            LOGGING can always be toggled at runtime when in DEBUG mode (Ctrl, Ctrl, Shift, Shift).
            This flag automatically activates logging on page load.
         –>
         <client-debug-autologging>false</client-debug-autologging>
      </flags>
   </config>
   <!–
   <config evaluator="string-compare" condition="WebFramework">
      <web-framework>–>
         <!– SpringSurf Autowire Runtime Settings –>
         <!–
              Developers can set mode to 'development' to disable; SpringSurf caches,
              FreeMarker template caching and Rhino JavaScript compilation.
         –>
         <!–        
          <autowire>–>
            <!– Pick the mode: "production" or "development" –>
          <!–   <mode>production</mode>
         </autowire>
–>
         <!– Allows extension modules with <auto-deploy> set to true to be automatically deployed –>
        <!–  <module-deployment>
            <mode>manual</mode>
            <enable-auto-deploy-modules>true</enable-auto-deploy-modules>
         </module-deployment>
      </web-framework>
   </config>

   <config evaluator="string-compare" condition="Replication">
      <share-urls>
         <!–
            To discover a Repository Id, browse to the remote server's CMIS landing page at:
              http://{server}:{port}/alfresco/service/cmis/index.html
            The Repository Id field is found under the "CMIS Repository Information" expandable panel.

            Example config entry:
              <share-url repositoryId="622f9533-2a1e-48fe-af4e-ee9e41667ea4">http://new-york-office:8080/share/</share-url>
        
      </share-urls>
   </config>
–>
   <!– Document Library config section –>
   <config evaluator="string-compare" condition="DocumentLibrary" replace="true">

      <tree>
         <!–
            Whether the folder Tree component should enumerate child folders or not.
            This is a relatively expensive operation, so should be set to "false" for Repositories with broad folder structures.
         –>
         <evaluate-child-folders>false</evaluate-child-folders>
        
         <!–
            Optionally limit the number of folders shown in treeview throughout Share.
         –>
         <maximum-folder-count>-1</maximum-folder-count>
      </tree>

      <!–
         Used by the "Manage Aspects" action

         For custom aspects, remember to also add the relevant i18n string(s)
            cm_myaspect=My Aspect
      –>
      <aspects>
         <!– Aspects that a user can see –>
         <visible>
            <aspect name="cm:generalclassifiable" />
            <aspect name="cm:complianceable" />
            <aspect name="cm:dublincore" />
            <aspect name="cm:effectivity" />
            <aspect name="cm:summarizable" />
            <aspect name="cm:versionable" />
            <aspect name="cm:templatable" />
            <aspect name="cm:emailed" />
            <aspect name="emailserver:aliasable" />
            <aspect name="cm:taggable" />
            <aspect name="app:inlineeditable" />
            <aspect name="gd:googleEditable" />
            <aspect name="cm:geographic" />
            <aspect name="exif:exif" />
         </visible>

         <!– Aspects that a user can add. Same as "visible" if left empty –>
         <addable>
         </addable>

         <!– Aspects that a user can remove. Same as "visible" if left empty –>
         <removeable>
         </removeable>
      </aspects>

      <!–
         Used by the "Change Type" action

         Define valid subtypes using the following example:
            <type name="cm:content">
               <subtype name="cm:mysubtype" />
            </type>

         Remember to also add the relevant i18n string(s):
            cm_mysubtype=My SubType
      –>
      <types>
         <type name="cm:content">
         </type>

         <type name="cm:folder">
         </type>
      </types>

      <!–
         If set, will present a WebDAV link for the current item on the Document and Folder details pages.
         Also used to generate the "View in Alfresco Explorer" action for folders.
      –>
      <repository-url>http://localhost:8080/alfresco</repository-url>

      <!–
         Google Docsâ„¢ integration
      –>
      <google-docs>
         <!–
            Enable/disable the Google Docs UI integration (Extra types on Create Content menu, Google Docs actions).
         –>
         <enabled>false</enabled>

         <!–
            The mimetypes of documents Google Docs allows you to create via the Share interface.
            The I18N label is created from the "type" attribute, e.g. google-docs.doc=Google Docs&trade; Document
         –>
         <creatable-types>
            <creatable type="doc">application/msword</creatable>
            <creatable type="xls">application/vnd.ms-excel</creatable>
            <creatable type="ppt">application/vnd.ms-powerpoint</creatable>
         </creatable-types>
      </google-docs>

      <!–
         File upload configuration
      –>
      <file-upload>
         <!–
            Adobe Flashâ„¢
            In certain environments, an HTTP request originating from Flash cannot be authenticated using an existing session.
            See: http://bugs.adobe.com/jira/browse/FP-4830
            For these cases, it is useful to disable the Flash-based uploader for Share Document Libraries.
         –>
         <adobe-flash-enabled>true</adobe-flash-enabled>
      </file-upload>
   </config>


   <!– Custom DocLibActions config section –>
   <config evaluator="string-compare" condition="DocLibActions">
   <actions>
   <action id="document-sendAsEmail" icon="email" type="javascript"
            label="actions.document.sendAsEmail">
            <param name="function">onActionFormDialog</param>
            <param name="itemKind">action</param>
            <param name="itemId">send-as-email</param>
            <param name="mode">create</param>
            <param name="destination">{node.nodeRef}</param>
            <param name="successMessage">message.sendAsEmail.success</param>
            <param name="failureMessage">message.sendAsEmail.failure</param>
            <evaluator negate="true">evaluator.doclib.action.isEmailed
            </evaluator>
         </action>
         </actions>
      <actionGroups>
         <actionGroup id="document-browse">

            <!– Simple Repo Actions –>
            <!–
            <action index="340" id="document-extract-metadata" />
            <action index="350" id="document-increment-counter" />
            –>
             <action index="400" id="document-sendAsEmail" />
              </actionGroup>
            <!– Dialog Repo Actions –>
            <!–
            <action index="360" id="document-transform" />
            <action index="370" id="document-transform-image" />
            <action index="380" id="document-execute-script" />
            –>
             <actionGroup id="document-details">
             <action index="400" id="document-sendAsEmail" />
        

        
      </actionGroups>
   </config>

   <!– Global folder picker config section –>
   <config evaluator="string-compare" condition="GlobalFolder">
      <siteTree>
         <container type="cm:folder">
            <!– Use a specific label for this container type in the tree –>
            <rootLabel>location.path.documents</rootLabel>
            <!– Use a specific uri to retreive the child nodes for this container type in the tree –>
            <uri>slingshot/doclib/treenode/site/{site}/{container}{path}?children={evaluateChildFoldersSite}&amp;max={maximumFolderCountSite}</uri>
         </container>
      </siteTree>
   </config>

   <!– Repository Library config section –>
   <config evaluator="string-compare" condition="RepositoryLibrary" replace="true">
      <!–
         Root nodeRef or xpath expression for top-level folder.
         e.g. alfresco://user/home, /app:company_home/st:sites/cm:site1
         If using an xpath expression, ensure it is properly ISO9075 encoded here.
      –>
      <root-node>alfresco://company/home</root-node>

      <tree>
         <!–
            Whether the folder Tree component should enumerate child folders or not.
            This is a relatively expensive operation, so should be set to "false" for Repositories with broad folder structures.
         –>
         <evaluate-child-folders>false</evaluate-child-folders>
        
         <!–
            Optionally limit the number of folders shown in treeview throughout Share.
         –>
         <maximum-folder-count>500</maximum-folder-count>
      </tree>
   </config>
  
   <!– Kerberos settings –>
   <!– To enable kerberos rename this condition to "Kerberos" –>
   <config evaluator="string-compare" condition="KerberosDisabled" replace="true">
      <kerberos>
         <!–
            Password for HTTP service account.
            The account name *must* be built from the HTTP server name, in the format :
               HTTP/<server_name>@<realm>
            (NB this is because the web browser requests an ST for the
            HTTP/<server_name> principal in the current realm, so if we're to decode
            that ST, it has to match.)
         –>
         <password>secret</password>
         <!–
            Kerberos realm and KDC address.
         –>
         <realm>ALFRESCO.ORG</realm>
         <!–
            Service Principal Name to use on the repository tier.
            This must be like: HTTP/host.name@REALM
         –>
         <endpoint-spn>HTTP/repository.server.com@ALFRESCO.ORG</endpoint-spn>
         <!–
            JAAS login configuration entry name.
         –>
         <config-entry>ShareHTTP</config-entry>
      </kerberos>
   </config>

   <!– example port config used to access remote Alfresco server (default is 8080) –>
   <!–
   <config evaluator="string-compare" condition="Remote">
      <remote>
         <endpoint>
            <id>alfresco-noauth</id>
            <name>Alfresco - unauthenticated access</name>
            <description>Access to Alfresco Repository WebScripts that do not require authentication</description>
            <connector-id>alfresco</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
            <identity>none</identity>
         </endpoint>

         <endpoint>
            <id>alfresco</id>
            <name>Alfresco - user access</name>
            <description>Access to Alfresco Repository WebScripts that require user authentication</description>
            <connector-id>alfresco</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
            <identity>user</identity>
         </endpoint>

         <endpoint>
            <id>alfresco-feed</id>
            <name>Alfresco Feed</name>
            <description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description>
            <connector-id>http</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
            <basic-auth>true</basic-auth>
            <identity>user</identity>
         </endpoint>
        
         <endpoint>
            <id>activiti-admin</id>
            <name>Activiti Admin UI - user access</name>
            <description>Access to Activiti Admin UI, that requires user authentication</description>
            <connector-id>activiti-admin-connector</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/activiti-admin</endpoint-url>
            <identity>user</identity>
         </endpoint>
      </remote>
   </config>
   –>

   <!–
        Overriding endpoints to reference an Alfresco server with external SSO enabled
        NOTE: If utilising a load balancer between web-tier and repository cluster, the "sticky
              sessions" feature of your load balancer must be used.
        NOTE: If alfresco server location is not localhost:8080 then also combine changes from the
              "example port config" section below.
        *Optional* keystore contains SSL client certificate + trusted CAs.
        Used to authenticate share to an external SSO system such as CAS
        Remove the keystore section if not required i.e. for NTLM.
       
        NOTE: For Kerberos SSO rename the "KerberosDisabled" condition above to "Kerberos"
       
        NOTE: For external SSO, switch the endpoint connector to "AlfrescoHeader" and set
              the userHeader to the name of the HTTP header that the external SSO
              uses to provide the authenticated user name.
   –>
   <!–
   <config evaluator="string-compare" condition="Remote">
      <remote>
         <keystore>
             <path>alfresco/web-extension/alfresco-system.p12</path>
             <type>pkcs12</type>
             <password>alfresco-system</password>
         </keystore>
        
         <connector>
            <id>alfrescoCookie</id>
            <name>Alfresco Connector</name>
            <description>Connects to an Alfresco instance using cookie-based authentication</description>
            <class>org.alfresco.web.site.servlet.SlingshotAlfrescoConnector</class>
         </connector>
        
         <connector>
            <id>alfrescoHeader</id>
            <name>Alfresco Connector</name>
            <description>Connects to an Alfresco instance using header and cookie-based authentication</description>
            <class>org.alfresco.web.site.servlet.SlingshotAlfrescoConnector</class>
            <userHeader>SsoUserHeader</userHeader>
         </connector>

         <endpoint>
            <id>alfresco</id>
            <name>Alfresco - user access</name>
            <description>Access to Alfresco Repository WebScripts that require user authentication</description>
            <connector-id>alfrescoCookie</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/wcs</endpoint-url>
            <identity>user</identity>
            <external-auth>true</external-auth>
         </endpoint>
      </remote>
   </config>
   –>
    <config evaluator="string-compare" condition="send-as-email">
      <forms>
         <form>
            <field-visibility>
                <show id="to" />
                <show id="subject" />
                <show id="body_text" />
            </field-visibility>
             <appearance>
               <field id="to" label-id="send-as-email.field.to"/>
               <field id="subject" label-id="send-as-email.field.subject"/>
               <field id="body_text" label-id="send-as-email.field.body_text"/>
                 <control template="/org/alfresco/components/form/controls/textarea.ftl" />
            </appearance>
         </form>
      </forms>
   </config>
</alfresco-config>




Thanks

ecarbenay
Star Contributor
Star Contributor
Hi,

what is missing in your configuration is the last part of the explanations given by Martin Bergljung.
You forgot
  • to add a context file to define the repository action : this file must be placed on the classpath like <em><ALFRESCO>/tomcat/shared/classes/alfresco/extension/sendasemail-action-context.xml</em>,
  •  
  • to add a class to be run when the action is triggered. the java code for that class is provided at the end of the article.
Once this is made, the form is well displayed.

For instance, to be able to display the form, in addition to your <em>share-condif-custom.xml</em> file, I added the file <em><ALFRESCO>/tomcat/shared/classes/alfresco/extension/sendasemail-action-context.xml</em>, with following content :

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>
   <bean id="send-as-email" class="org.alfresco.repo.action.executer.MailActionExecuter" parent="action-executer">
      <property name="mailService">
         <ref bean="mailService"></ref>
      </property>
      <property name="templateService">
         <ref bean="templateService"></ref>
      </property>
      <property name="personService">
         <ref bean="personService"></ref>
      </property>
      <property name="authenticationService">
         <ref bean="authenticationService"></ref>
      </property>
      <property name="nodeService">
         <ref bean="nodeService"></ref>
      </property>
      <property name="authorityService">
         <ref bean="authorityService"></ref>
      </property>
      <property name="serviceRegistry">
         <ref bean="ServiceRegistry"></ref>
      </property>
   </bean>
</beans>


This config file "points" to an existing class used to send email. It's not the purpose of Martin's article, but show you the form (to be able to see all three fields, you have to replace body_text by text in your <em>share_config_custom.xml</em>.
Then you have to add your own class to be able to use your action appropriately.

Hi

I have put this file in the extention directory as you said but still i am not able to see the form.

In tomcat it is showing error:
[scripts.form.FormUIGet]org.alfresco.repo.forms.FormNotFoundException:A form could not be found for item [action]send-as-email.


Nancy
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.