01-26-2007 03:01 PM
…
<#list document.assocs["msu:attach"] as child>
<#if child.isDocument>
<tr>
<td><a href="/alfresco${child.url}" target="new"><img src="/alfresco${child.icon16}" border=0></a></td>
<td><a href=/alfresco/navigate/showDocDetails/workspace/SpacesStore/${child.id}>${child.properties.name}</a>
</td>
<td>${(child.size / 1000)?string("0.##")} KB</td>
<td> <#if child.isLocked>Yes</#if></td>
</tr>
</#if>
</#list>
…
This seems to work ok. It does indeed link to the detail view of the associated document. The problem is that it seems to try to render this page with the property sheet of the parent document. It displays "$$error_association$$" even though the current document is of a type that has no associations.
01-29-2007 06:31 AM
01-29-2007 10:37 AM
<type name="msu:guideline_content_ops">
<title>Operations Guideline</title>
<parent>cm:content</parent>
<properties>
<property name="msu:opsGroup">
<title>Group</title>
<type>d:text</type>
<constraints>
<constraint ref="msu:opsGroup" />
</constraints>
</property>
</properties>
</type>
<type name="msu:contract">
<title>Contracts and Grants</title>
<parent>cm:content</parent>
<properties>
<property name="msu:test">
<title>Test</title>
<type>d:text</type>
</property>
</properties>
<associations>
<association name="msu:attach">
<target>
<class>msu:guideline_content_ops</class>
<mandatory>false</mandatory>
<many>false</many>
</target>
</association>
</associations>
</type>
<config evaluator="node-type" condition="msu:guideline_content_ops">
<property-sheet>
<show-property name="msu:opsGroup" />
</property-sheet>
</config>
<config evaluator="node-type" condition="msu:contract">
<property-sheet>
<show-property name="msu:test" />
<show-association name="msu:attach" />
</property-sheet>
</config>
10-21-2007 10:45 AM
11-11-2008 04:33 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.