diff --git a/config/alfresco/templates/RSS_2.0_recent_docs.ftl b/config/alfresco/templates/RSS_2.0_recent_docs.ftl new file mode 100644 index 0000000000..25e1d9e516 --- /dev/null +++ b/config/alfresco/templates/RSS_2.0_recent_docs.ftl @@ -0,0 +1,42 @@ + + + + Alfresco + Copyright (c) 2005 Alfresco Software, Inc. All rights reserved. + <#assign hostname="http://localhost:8080/alfresco"> + <#assign spaceref="${hostname}/navigate/browse/${space.nodeRef.storeRef.protocol}/${space.nodeRef.storeRef.identifier}/${space.nodeRef.id}"> + <#assign datetimeformat="EEE, dd MMM yyyy hh:mm:ss zzz"> + ${spaceref} + Recent Changes to '${space.name}' + en-us + ${date?string(datetimeformat)} + ${date?string(datetimeformat)} + 120 + Alfresco 1.1 + + ${space.name} + 32 + 32 + ${spaceref} + ${hostname}${space.icon32} + + <#assign weekms=1000*60*60*24*7> + <#list space.childrenByXPath[".//*[subtypeOf('cm:content')]"] as child> + <#if (dateCompare(child.properties["cm:modified"], date, weekms) == 1) || (dateCompare(child.properties["cm:created"], date, weekms) == 1)> + + ${child.properties.name} + ${hostname}${child.url} + + ${""?xml}${child.properties.name}${""?xml} + <#if child.properties["cm:description"]?exists && child.properties["cm:description"] != ""> + ${child.properties["cm:description"]} + + + ${child.properties["cm:modified"]?string(datetimeformat)} + ${hostname}${child.url} + + + + + + diff --git a/source/java/org/alfresco/web/app/servlet/TemplateContentServlet.java b/source/java/org/alfresco/web/app/servlet/TemplateContentServlet.java index 27a51fbc46..b601feb14b 100644 --- a/source/java/org/alfresco/web/app/servlet/TemplateContentServlet.java +++ b/source/java/org/alfresco/web/app/servlet/TemplateContentServlet.java @@ -143,6 +143,13 @@ public class TemplateContentServlet extends HttpServlet templateRef = new NodeRef(storeRef, t.nextToken()); } + String mimetype = MIMETYPE_HTML; + if (req.getParameter(ARG_MIMETYPE) != null) + { + mimetype = req.getParameter(ARG_MIMETYPE); + } + res.setContentType(mimetype); + // get the services we need to retrieve the content WebApplicationContext context = WebApplicationContextUtils.getRequiredWebApplicationContext(getServletContext()); ServiceRegistry serviceRegistry = (ServiceRegistry)context.getBean(ServiceRegistry.SERVICE_REGISTRY); diff --git a/source/web/jsp/dialog/edit-text-inline.jsp b/source/web/jsp/dialog/edit-text-inline.jsp index c9d6882f16..c78e368ebe 100644 --- a/source/web/jsp/dialog/edit-text-inline.jsp +++ b/source/web/jsp/dialog/edit-text-inline.jsp @@ -138,7 +138,7 @@ <%-- Inline editor --%> - + diff --git a/source/web/jsp/wizard/create-content/create-text.jsp b/source/web/jsp/wizard/create-content/create-text.jsp index 84e8b30088..1b27ee524e 100644 --- a/source/web/jsp/wizard/create-content/create-text.jsp +++ b/source/web/jsp/wizard/create-content/create-text.jsp @@ -111,7 +111,7 @@ - +