Files
alfresco-community-repo/config/alfresco/templates/content/examples/doc_info.ftl
Kevin Roast 58c074e716 Merged V3.2 to HEAD
15506: Fix for ALFCOM-3274 - removed double-encoding of webview dashlet title when set from Configure dialog.
   15543: Fixes for ETHREEOH-2596 and ETHREEOH-2392. Any Admin user now forced to enter old password when editing themselves in the Share User Admin console.
   15620:Merged V3.1 to V3.2
      15595: Merged DEV-TEMPORARY to V3.1
         15446: Appropriate JSP page was modified to align radio buttons.
      15597: Fix for ETHREEOH-2575 - all PNG files now appear in IE6, note that PNG transparency is not supported in IE6.
      15598: Merged DEV-TEMPORARY to V3.1
         15593: ETHREEOH-2445: Localization Issues [Email Templates and RSS Templates ACPs I18N]
      15599: Merged DEV-TEMPORARY to V3.1
         15491: ETHREEOH-2460: Localization Issues - Email template
      15601: *RECORD ONLY* Merged V3.2 to V3.1
         15504: ETHREEOH-2447: My Content page localisation failing. [backport from V3.2]
      15613: *RECORD ONLY* Removed reference to portlets message bundle - as per CHK-8518
   15784: Minor performance improvements to data dictionary classes relating to Permission evaluations.
   15791: Merged V3.1 to V3.2
      15693: Merged DEV-TEMPORARY to V3.1
         15648: ETHREEOH-2549: Templates in 3.1 will need localising
      15743: ETHREEOH-2586: JP:Layout error, the word "....." (cancel) should be in the same line
      15745: ETHREEOH-2493 - HTML and XML encoding fixes to Alfresco OpenSearch keyword and person search HTML/ATOM/RSS feed templates.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15793 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-18 15:09:08 +00:00

58 lines
2.6 KiB
Plaintext

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