AnsweredAssumed Answered

Automatic Folder Creation

Question asked by bguy on Sep 3, 2009
Hi all,

I'm would like to create automatically 2 folders on my new early created space. How could i do that?

Bellow follows the code that i coded in toolbar.get.js (an extended webscript from documentlibrary) to create the site.

   var clientRequest = '{"title":"","description":"","sitePreset":"site-dashboard","alfresco-createSite-instance-isPublic-checkbox":"on","isPublic":"true","shortName":"mysite"}';
   var clientJSON = eval('(' + clientRequest + ')');

   var connector = remote.connect("alfresco");
   var repoResponse ="/api/sites", clientRequest, "application/json");

Thanks in advance!