Configuring a Form Control - Alfresco Content Services - 23.4 - 23.4 - Ready - Alfresco - external

Alfresco Content Services

Platform
Alfresco
Product
Alfresco Content Services
Release
23.4
License

Most of the built in controls have parameters that allow some basic customization.

  1. Open the <web-extension>\share-config-custom.xml file.
  2. Change the number of rows and columns used for the textarea control that the cm:description field uses by default.
    <configevaluator="node-type"condition="cm:content">
       <forms>
          <form>
             <appearance>
                <field id="cm:description">
                   <control>
                      <control-param name="rows">20</control-param>
                      <control-param name="columns">80</control-param>
                   </control>
                </field>
             </appearance>
          </form>
       </forms>
    </config>
    
  3. If all textarea controls in the application need to have these settings, configure the control in the default-controls element. For example:
    <configevaluator="node-type"condition="cm:content">
       <forms>
          <default-controls>
             <type name="d:mltext">
                <control-param name="rows">20</control-param>
                <control-param name="columns">80</control-param>
             </type>
          </default-controls>
       </forms>
    </config>    
    
  4. Save the file.