02-27-2018 11:31 AM
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>
02-28-2018 11:55 AM
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
02-28-2018 11:55 AM
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
Explore our Alfresco products with the links below. Use labels to filter content by product module.