Hi,I want to make a dashlet, that list all folders from the 'documentLibrary'.I tried this analog to the 'documentsummary' dashlet, but I dont seem to be able to find out, how to get all folders instead of documents.'documentsummary.get.js':
// Get the Documents Modified data for this site
var url = args.dod5015 ? "/slingshot/doclib/dod5015/doclist/documents/site/" : "/slingshot/doclib/doclist/documents/site/";
var json = remote.call(url + page.url.templateArgs.site + "/documentLibrary?filter=recentlyModified&max=10");
// Create the model
var docs = eval('(' + json + ')');
model.docs = docs;
now what I tried is the following:// Get the Folders
var site, container, theUrl, connector, result, lists;
site = page.url.templateArgs.site;
container = 'documentLibrary';
theUrl = '/slingshot/doclib/container/' + site + '/' + container;
connector = remote.connect("alfresco");
result = connector.get(theUrl);
var response = null;
if (result.status == 200)
{
response = eval('(' + result.response + ')');
}
model.docs = response;
which only returns the nodeRef of the container 'documentLibrary'I do have the following situation/folder structure:documentLibrary - folder1 - some subfolders - folder2 - folder3…What I want to have in my dashlet is a nice list of those folders (folder1, folder2, folder3,… without subfolders) with description etc.Thanks for your help.max12