From 486d0ec780cfebba1c5c95ac8d45a6099fea6e42 Mon Sep 17 00:00:00 2001 From: Kevin Roast Date: Fri, 27 Apr 2007 15:44:59 +0000 Subject: [PATCH] Document List template now supports a cm:name based path argument as the starting location. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5571 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../alfresco/portlets/doclist_get_html.ftl | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/config/alfresco/templates/webscripts/org/alfresco/portlets/doclist_get_html.ftl b/config/alfresco/templates/webscripts/org/alfresco/portlets/doclist_get_html.ftl index 8f46d5f686..9f3415c857 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/portlets/doclist_get_html.ftl +++ b/config/alfresco/templates/webscripts/org/alfresco/portlets/doclist_get_html.ftl @@ -22,9 +22,16 @@ <#if args.f?exists><#assign filter=args.f?number><#else><#assign filter=0> <#-- get the path location from the passed in args --> -<#if args.p?exists> - <#-- TODO: resolve the path (from Company Home) into a node or fall back to userhome--> - <#assign home=userhome> +<#if args.p?exists><#assign path=args.p><#else><#assign path=""> +<#-- resolve the path (from Company Home) into a node or fall back to userhome--> +<#if path?starts_with("/Company Home")> + <#if path?length=13> + <#assign home=companyhome> + <#elseif companyhome.childByNamePath[args.p[14..]]?exists> + <#assign home=companyhome.childByNamePath[args.p[14..]]> + <#else> + <#assign home=userhome> + <#else> <#assign home=userhome> @@ -34,11 +41,11 @@ - - - - - + + + + +
All ItemsWord DocumentsHTML DocumentsPDF DocumentsRecently ModifiedAll ItemsWord DocumentsHTML DocumentsPDF DocumentsRecently Modified