From d8b54de711bf188c6aefe22e9b704fbdd48d1aaf Mon Sep 17 00:00:00 2001 From: Kevin Roast Date: Wed, 29 Mar 2006 10:50:07 +0000 Subject: [PATCH] . Dashboard views (templates) can now be applied to Documents through the Document Details View - refactored DocumentDetailsBean and SpaceDetailsBean common code into BaseDetailsBase . Fixed a couple of minor errors in example templates . Preview in Template actions now launched as dialog actions git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2586 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../alfresco/templates/content/examples/translatable.ftl | 8 +++++--- .../alfresco/templates/content/examples/xpath_search.ftl | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/config/alfresco/templates/content/examples/translatable.ftl b/config/alfresco/templates/content/examples/translatable.ftl index 664f6e78e2..6d6e692a28 100644 --- a/config/alfresco/templates/content/examples/translatable.ftl +++ b/config/alfresco/templates/content/examples/translatable.ftl @@ -4,9 +4,11 @@ <#if hasAspect(document, "cm:translatable") = 1> Yes
- <#list document.assocs["cm:translations"] as t> - - + <#if document.assocs["cm:translations"]?exists> + <#list document.assocs["cm:translations"] as t> + + +
${t.content}
${t.content}
<#else> No
diff --git a/config/alfresco/templates/content/examples/xpath_search.ftl b/config/alfresco/templates/content/examples/xpath_search.ftl index 9d9a34c150..b81f9440d5 100644 --- a/config/alfresco/templates/content/examples/xpath_search.ftl +++ b/config/alfresco/templates/content/examples/xpath_search.ftl @@ -1,8 +1,8 @@ <#-- Shows use of the childByNamePath, childrenByXPath and childrenByLuceneSearch API --> -

Template Documents in 'Company Home/Data Dictionary/Content Templates':

+

Template Documents in 'Company Home/Data Dictionary/Presentation Templates':

-<#list companyhome.childByNamePath["Data Dictionary/Content Templates"].children as child> +<#list companyhome.childByNamePath["Data Dictionary/Presentation Templates"].children as child> <#if child.isDocument>
${child.properties.name}