Test Template 1
<#-- Title is used in test code to ensure that updates to source node rerender properly --> <#-- The xxx xxx demarcation here is used by the test code --> TestTitle= xxx${node.properties["cm:title"]?string}xxx <#-- Test basic properties --> ${node.id}
${node.name}
${node.properties?size}
${node.children?size}
<#if node.assocs["cm:translations"]?exists> node.assocs
${node.aspects?size}
<#if node.isContainer>node.isContainer
<#if node.isDocument>node.isDocument
<#--${node.content}
--> ${node.url}
${node.displayPath}
${node.icon16}
${node.icon32}
<#if node.mimetype?exists>node.mimetype
<#if node.size?exists>node.size
<#if node.isLocked>node.isLocked
<#-- Test child walking and property resolving --> <#list node.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 node.childrenByXPath["//*[@sys:store-protocol='workspace']"] as child> ${child.name}
End Test Template 1