AnsweredAssumed Answered

Get current folder path

Question asked by laurent1050 on Oct 7, 2010
Latest reply on Oct 14, 2010 by mikeh
Hi,

I've made a web script in Alfresco to get the description of a folder: /slingshot/doclib/folderdescription/site/{site}/{container}/{path}
Everythig is ok, I get the description of the my folder using
http://localhost:8080/alfresco/service/slingshot/doclib/folderdescription/site/mySite/documentlibrary/A/B

Know, I want to ask this web script from Share, using remote.call

var mySite = page.url.templateArgs.site;
var myFolderPath = ???;
remote.call("/slingshot/doclib/folderdescription/site/" + mySite + "/documentlibrary/" + myFolderPath);
But I don't know how to get the current folder path ?

In fact, what I need to show in the document library is the description of the current folder.
For example, in the page showing the content of the A/B folder in my Share site (http://localhost:8080/share/page/site/mySite/documentlibrary#filter=path|/A/B&page=1), I want to show the description of the folder B.

Thanks for your answers
Laurent

Outcomes