08-29-2013 01:35 PM
<types>
<type name="cstm:my-document">
<title>My document</title>
<parent>cm:content</parent>
<properties>
</properties>
<associations>
<association name="cstm:myattached">
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>cm:content</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
</type>
</types>
…
<config evaluator="string-compare" condition="DocumentLibrary" replace="true">
<create-content>
<content id="document.my-type" label="My type" type="pagelink" index="90" >
<param name="page">create-content?destination={nodeRef}&itemId=cstm:my-document</param>
</content>
</create-content>
</config>
<config evaluator="model-type" condition="cstm:my-document">
<forms>
<form>
<field-visibility>
<show id="cm::name"/>
<show id="cstm:myattached" />
</field-visibility>
<appearance>
<field id="cm::name"/>
<field id="cstm:myattached">
<control template="/org/alfresco/components/form/controls/association.ftl"/>
</field>
</appearance>
</form>
</forms>
</config>
…
09-02-2013 08:09 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.