cancel
Showing results for 
Search instead for 
Did you mean: 

hide uneccessary fields of model

sharifu
Confirmed Champ
Confirmed Champ
In my share config custom xml file i have the following


<config evaluator="node-type" condition="sp:multiclentA">
      <forms>
         <!– Default form configuration used on the document details and edit
            metadata pages –>
         <form>
            <field-visibility>            
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="sp:mctype" />
               <show id="sp:thirdParties" />
               <show id="sp:location" />
               <show id="sp:responsibleEmp" />
               <show id="sp:contractRef" />
               <show id="sp:logNumber" />
               <show id="sp:effectiveDate" />
               <show id="sp:expiryDate" />   
               <show id="sp:creationDate" />
               
               <show id="sp:relatedSuppliment" />
            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:description">
                  <control>
                     <control-param name="activateLinks">true</control-param>
                  </control>
               </field>
               <field id="sp:mctype" label-id="Type">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="sp:thirdParties" label-id="Customer/Vendor Name" />
               <field id="sp:location" label-id="Location" />
               <field id="sp:responsibleEmp" label-id="Responsible Spectrum Employee" />
               <field id="sp:contractRef" label-id="Internal Reference" />
               <field id="sp:logNumber" label-id="Log Number" />
               <field id="sp:creationDate" label-id="Contract Created Date" />
               <field id="sp:effectiveDate" label-id="Contract Signature Date (Client)" />
               <field id="sp:expiryDate" label-id="Contract Expiration Date" />
               
               <field id="sp:relatedSuppliment" labelid="assoc.sp_relatedSuppliment" />
            </appearance>
         </form>

         <!– Document Library pop-up Edit Metadata form –>
         <form id="doclib-simple-metadata">
            <field-visibility>
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="sp:mctype" />
               <show id="sp:thirdParties" />
               <show id="sp:location" />
               <show id="sp:responsibleEmp" />
               <show id="sp:contractRef" />
               <show id="sp:logNumber" />
               <show id="sp:effectiveDate" />
               <show id="sp:expiryDate" />   
               <show id="sp:creationDate" />
               
               <show id="sp:relatedSuppliment" />
            </field-visibility>
            
            
            
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:description">
                  <control>
                     <control-param name="activateLinks">true</control-param>
                  </control>
               </field>
               <field id="sp:mctype" label-id="Type" />
               <field id="sp:thirdParties" label-id="Customer/Vendor Name" />
               <field id="sp:location" label-id="Location" />
               <field id="sp:responsibleEmp" label-id="Responsible Spectrum Employee" />
               <field id="sp:contractRef" label-id="Reference" />
               <field id="sp:creationDate" label-id="Contract Created Date" />
               <field id="sp:effectiveDate" label-id="Contract Signature Date (Client)" />
               <field id="sp:expiryDate" label-id="Contract Expiration Date" />
               
               <field id="sp:relatedSuppliment" labelid="assoc.sp_relatedSuppliment" />
            </appearance>
         </form>

         <!– Document Library Inline Edit form –>
         <form id="doclib-inline-edit">
            <field-visibility>
               <show id="cm:title" force="true" />
               <show id="cm:description" force="true" />
               <show id="sp:mctype" />
               <show id="sp:thirdParties" />
               <show id="sp:location" />
               <show id="sp:responsibleEmp" />
               <show id="sp:contractRef" />
               <show id="sp:logNumber" />
               <show id="sp:effectiveDate" />
               <show id="sp:expiryDate" />   
               <show id="sp:creationDate" />
               
               <show id="sp:relatedSuppliment" />
            </field-visibility>
            <appearance>
               <field id="cm:title">
                  <control template="/org/alfresco/components/form/controls/textfield.ftl" />
               </field>
               <field id="cm:description">
                  <control>
                     <control-param name="activateLinks">true</control-param>
                  </control>
               </field>
               <field id="sp:mctype" label-id="Type" />
               <field id="sp:thirdParties" label-id="Customer/Vendor Name" />
               <field id="sp:location" label-id="Location" />
               <field id="sp:responsibleEmp" label-id="Responsible Spectrum Employee" />
               <field id="sp:contractRef" label-id="Reference" />
               <field id="sp:creationDate" label-id="Contract Created Date" />
               <field id="sp:effectiveDate" label-id="Contract Signature Date (Client)" />
               <field id="sp:expiryDate" label-id="Contract Expiration Date" />
               
               <field id="sp:relatedSuppliment" labelid="assoc.sp_relatedSuppliment" />
            </appearance>
         </form>
      </forms>
   </config>




When I specialise a document to this type and add the aspect i get lots of other properties as well as the above ones. I cannot figure out how to remove the ones i do not want

unnecessary properties: image width, camera software, horizontal resolution etc…
1 REPLY 1

amandaluniz_z
Champ on-the-rise
Champ on-the-rise
You could use the hide tag instead of the show one