From 4c232e02b1ee1a816c549dc0976d31388cf9f155 Mon Sep 17 00:00:00 2001 From: David Caruana Date: Mon, 25 Jun 2007 15:30:07 +0000 Subject: [PATCH] - Addition of Mike's "readme" presentation template - Bootstrap updated & patch created - Applied to Web Scripts folders - Fixed Importer bug found with above import patch files git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6102 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../alfresco/bootstrap/webScriptsReadme.xml | 19 +++++++++++++++++++ config/alfresco/templates/readme.ftl | 13 +++++++++++++ config/alfresco/templates/readme_template.xml | 19 +++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 config/alfresco/bootstrap/webScriptsReadme.xml create mode 100644 config/alfresco/templates/readme.ftl create mode 100644 config/alfresco/templates/readme_template.xml diff --git a/config/alfresco/bootstrap/webScriptsReadme.xml b/config/alfresco/bootstrap/webScriptsReadme.xml new file mode 100644 index 0000000000..195dfc3b39 --- /dev/null +++ b/config/alfresco/bootstrap/webScriptsReadme.xml @@ -0,0 +1,19 @@ + + + + + + + + /app:company_home/app:dictionary/app:content_templates/cm:readme.ftl + + + + + + + + /app:company_home/app:dictionary/app:content_templates/cm:readme.ftl + + + \ No newline at end of file diff --git a/config/alfresco/templates/readme.ftl b/config/alfresco/templates/readme.ftl new file mode 100644 index 0000000000..9b9b3bf73f --- /dev/null +++ b/config/alfresco/templates/readme.ftl @@ -0,0 +1,13 @@ +<#-- Displays the contents of readme.html and/or the evaluated readme.ftl if they exist in the current space. --> + +<#assign htmlFilename = "readme.html"/> +<#assign ftlFilename = "readme.ftl"/> + +<#if space?exists> + <#if space.childByNamePath["${htmlFilename}"]?exists> + ${space.childByNamePath[htmlFilename].content} + + <#if space.childByNamePath["${ftlFilename}"]?exists> + <#include space.childByNamePath["${ftlFilename}"].nodeRef> + + diff --git a/config/alfresco/templates/readme_template.xml b/config/alfresco/templates/readme_template.xml new file mode 100644 index 0000000000..8bfab61f76 --- /dev/null +++ b/config/alfresco/templates/readme_template.xml @@ -0,0 +1,19 @@ + + + + + + + + + + true + Display the contents of a readme file (named readme.html or readme.ftl) + contentUrl=/alfresco/templates/readme.ftl|mimetype=text/plain|size=|encoding=UTF-8|locale=en_US_ + readme.ftl + Mike Farman + readme.ftl + + + + \ No newline at end of file