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