#-- Shows some general info about the current document, including NodeRef and aspects applied -->
<#if document?exists>
${message("templates.doc_info.current_document_info")}
${message("templates.doc_info.name")} ${document.name}
${message("templates.doc_info.ref")} ${document.nodeRef}
${message("templates.doc_info.type")} ${document.type}
${message("templates.doc_info.dbid")} ${document.properties["sys:node-dbid"]}
${message("templates.doc_info.content_url")} /contentspace${document.url}
${message("templates.doc_info.locked")} <#if document.isLocked>Yes<#else>No#if>
<#if hasAspect(document, "cm:countable") == 1 && document.properties['cm:counter']?exists>
${message("templates.doc_info.counter")} ${document.properties['cm:counter']}
#if>
${message("templates.doc_info.aspects")}
<#list document.aspects as aspect>
${aspect} |
#list>
${message("templates.doc_info.assocs")}
<#list document.assocs?keys as key>
${key} |
<#list document.assocs[key] as t>
${t.displayPath}/${t.name}
#list>
|
#list>
${message("templates.doc_info.properties")}
<#-- Get a list of all the property names for the document -->
<#assign props = document.properties?keys>
<#list props as t>
<#-- If the property exists -->
<#if document.properties[t]?exists>
<#-- If it is a date, format it accordingly -->
<#if document.properties[t]?is_date>
${t} = ${document.properties[t]?datetime} |
<#-- If it is a boolean, format it accordingly -->
<#elseif document.properties[t]?is_boolean>
${t} = ${document.properties[t]?string("yes", "no")} |
<#-- If it is a collection, enumerate it -->
<#elseif document.properties[t]?is_enumerable>
${t} = <#list document.properties[t] as i>${i} #list> |
<#-- Otherwise treat it as a string -->
<#else>
${t} = ${document.properties[t]?html} |
#if>
#if>
#list>
<#else>
${message("templates.doc_info.no_document_found")}
#if>