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>
Solved! Go to Solution.
Replaced
<config evaluator="model-type" condition="aa:metadata">
with
<config evaluator="node-type" condition="aa:metadata">
as
showTargetLink functionality works only on node-type evaluator
Replaced
<config evaluator="model-type" condition="aa:metadata">
with
<config evaluator="node-type" condition="aa:metadata">
as
showTargetLink functionality works only on node-type evaluator
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.