AnsweredAssumed Answered

Clickable association in Custom model type

Question asked by sakshik on Feb 27, 2018
Latest reply on Feb 28, 2018 by sakshik

Hello,

 

I have created a custom model type which has properties and associations. One of the associations is 'Related Document'  of class cm:content. 'Related Document' metadata lets you choose the document from Repository but the document is not clickable.

 

In share-config-custom.xml I have made:

<config evaluator="model-type" condition="aa:metadata">
   <forms>
      <form>
         <field-visibility>

            <show id="cm:title"/>
            <show id="aa:related_doc" />

        </field-visibility>

        <appearance>

            <field id="aa:related_doc">
                  <control template="/org/alfresco/components/form/controls/association.ftl">
                     <control-param name="showTargetLink">true</control-param>
                     <control-param name="allowNavigationToContentChildren">true</control-param>
                  </control>
            </field>

         </appearance>

   </form>

   <form id="doclib-simple-metadata">

         <field-visibility>

            <show id="cm:title"/>
            <show id="aa:related_doc" />

        </field-visibility>

        <appearance>

            <field id="aa:related_doc">
                  <control template="/org/alfresco/components/form/controls/association.ftl">
                     <control-param name="showTargetLink">true</control-param>
                     <control-param name="allowNavigationToContentChildren">true</control-param>
                  </control>
            </field>

         </appearance>

   </form>

</forms>

</config>

 

 

 

Outcomes