AnsweredAssumed Answered

How get current folder name in Share?

Question asked by vescudero on Aug 29, 2013
Latest reply on Aug 30, 2013 by vescudero
Hi,

I want to get the name of the current documentLibrary folder when upload a document for to use in template flash-upload.get.html.ftl:


<tomcat>/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/upload/flash-upload.get.js
<tomcat>/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/upload/flash-upload.get.html.ftl


I have the following folder structure:

-documentLibrary
– Folder1
– Folder2
– Folder3

when enter a folder (for example, Folder1) I get the following path


http://localhost:8080/share/page/site/name-site/documentlibrary#filter=path|%2FFolder1|&page=1


and when I upload a document in this folder I would like to get the name of the current folder, in this case Folder1.

Is there a way to get the name of the current folder? Using javascript or freemarker. Pay attention that script flash-upload.get.js is executing on server not in client.

If using the param template.properties.container on flash-upload.get.html.ftl this returns the string documentLibrary but isn't I need.

Thanks

Outcomes