Test Template 1
<#-- Test basic properties --> ${root.id}
${root.name}
${root.properties?size}
${root.children?size}
<#if root.assocs["cm:translations"]?exists> root.assocs
${root.aspects?size}
<#if root.isContainer>root.isContainer
<#if root.isDocument>root.isDocumentr
<#--${root.content}
--> ${root.url}
${root.displayPath}
${root.icon16}
${root.icon32}
<#if root.mimetype?exists>root.mimetype
<#if root.size?exists>root.size
<#if root.isLocked>root.isLocked
<#-- Test child walking and property resolving --> <#list root.children as child> <#-- show properties of each child --> <#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> <#-- If it is a boolean, format it accordingly--> <#elseif child.properties[t]?is_boolean> <#-- Otherwise treat it as a string --> <#else>
${t} = ${child.properties[t]?date}
${t} = ${child.properties[t]?string("yes", "no")}
${t} = ${child.properties[t]}
<#-- Test XPath --> <#list root.childrenByXPath["//*[@sys:store-protocol='workspace']"] as child> ${child.name}
End Test Template 1