<#-- 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 hasAspect(document, "cm:countable") == 1 && document.properties['cm:counter']?exists> ${message("templates.doc_info.counter")} ${document.properties['cm:counter']}
${message("templates.doc_info.aspects")} <#list document.aspects as aspect>
${aspect}
${message("templates.doc_info.assocs")} <#list document.assocs?keys as key>
${key} <#list document.assocs[key] as t> ${t.displayPath}/${t.name}
${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> <#-- If it is a boolean, format it accordingly --> <#elseif document.properties[t]?is_boolean> <#-- If it is a collection, enumerate it --> <#elseif document.properties[t]?is_enumerable> <#-- Otherwise treat it as a string --> <#else>
${t} = ${document.properties[t]?datetime}
${t} = ${document.properties[t]?string("yes", "no")}
${t} = <#list document.properties[t] as i>${i}
${t} = ${document.properties[t]?html}
<#else> ${message("templates.doc_info.no_document_found")}