As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
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" />.
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
ContCentric