03-06-2012 07:02 AM
<#if !child.isContainer>
<#– Get a list of all the property names for the document –>
<#assign props = child.properties?keys>
<#list props as t>
<#– If the property exists –>
<#if child.properties[t]?exists>
<#– If it is a date, format it accordingly–>
<#if child.properties[t]?is_date>
<dateprop>${t} = ${child.properties[t]?date}</dateprop>
<#– If it is a boolean, format it accordingly–>
<#elseif child.properties[t]?is_boolean>
<boolprop>${t} = ${child.properties[t]?string("yes", "no")}</boolprop>
<#– Otherwise treat it as a string –>
<#else>
<otherprop>${t} = ${child.properties[t]}</otherprop>
</#if>
</#if>
03-07-2012 06:08 PM
03-08-2012 10:44 PM
<relatedArticles>
<#if child.assocs["ws:relatedArticles"]?exists>
<#list child.assocs["ws:relatedArticles"] as t>
<article>
<link rel="alternate" href="${absurl(url.serviceContext)}/api/node/content/${t.nodeRef.storeRef.protocol}/${t.nodeRef.storeRef.identifier}/${t.nodeRef.id}/${t.name?url}"/>
<relID>${t.id}</relID>
<relTitle>${t.name}</relTitle>
<relDesc>${t.properties.description}</relDesc>
<relCreator>${t.properties.creator}</relCreator>
</article>
</#list>
</#if>
</relatedArticles>
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.