<types>
<!– Definition of new Content Type: Press Release –>
<type name="custom:pressrelease">
<title>Press Release</title>
<parent>cm:content</parent>
<properties>
<property name="custom:PRName">
<title>PR Person Name</title>
<type>d:text</type>
</property>
<property name="custom:PREmail">
<title>PR Person Email</title>
<type>d:text</type>
</property>
<property name="custom:PRPhone">
<type>d:text</type>
<mandatory>true</mandatory>
<default>simple</default>
<constraints>
<constraint type="LIST">
<parameter name="allowedValues">
<list>
<value>simple</value>
<value>double</value>
<value>triple</value>
</list>
</parameter>
</constraint>
</constraints>
</property>
<property name="custom:PRDate">
<title>PR Released Date</title>
<type>d:date</type>
</property>
</properties>
<associations>
<association name="custom:responsible">
<source>
<mandatory>true</mandatory>
<many>true</many>
</source>
<target>
<class>cm:person</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
<mandatory-aspects>
<aspect>cm:versionable</aspect>
</mandatory-aspects>
</type>
</types>
document.assocs["custom:responsible"][0]
document.assocs["custom:responsible"] representa un array asociativo de solo lectura con la información de la asociación. Si tuvieras varios nodos asociados mediante la relación, pues con el índice puedes ir accediendo a cada uno de ellos (0, 1, 2…).document.childAssocs["custom:miChildAssociation"][0]
Espero que te sirva.document.assocs["custom:responsible"][0].properties["cm:userName"];
document.assocs["custom:responsible"][0].properties["cm:firstName"];
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
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.