08-19-2019 12:08 PM
Hi,
Can anyone show me simple example where can I add custom content control to a share-config-custom in a configuration element <config evaluator="model-type" condition="sm:my_type">? Somthing like in a workflow model <show id="packageItems" />.
08-20-2019 01:09 AM
Hi,
You can do it as follows:
1.) You have to add/create association in you content model as below
<type name="my:assType">
<title>Someco Document</title>
<parent>cm:content</parent>
<associations>
<association name="my:associationDocuments">
<title>Association Documents</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>my:assType</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
</type>
2.) modify "share-config-custom.xml" like,
<config evaluator="model-type" condition="my:assType">
<forms>
<form>
<field-visibility>
<show id="my:associationDocuments" />
</field-visibility>
<appearance>
<field id="my:associationDocuments" />
</appearance>
</form>
</forms>
</config>
This link also may help you.
Regards,
Vidhi
Explore our Alfresco products with the links below. Use labels to filter content by product module.