cancel
Showing results for 
Search instead for 
Did you mean: 

Webscript on space creatiion

johniboi
Champ in-the-making
Champ in-the-making
Hi Guys,

I am new to Alfresco.

I need a script that will populate a newly created space with specific sub-spaces (template it).

From what i understand i need to use var folderNode = space.createFolder(); to create the folders however i am uncertain how to figure out the name of the space just created.

If someone could possible help with this or advise if there is a better way of doing this.

Thanks for your help
John
2 REPLIES 2

jayjayecl
Confirmed Champ
Confirmed Champ
this should be enough for your needs :
http://wiki.alfresco.com/wiki/JavaScript_API_Cookbook

Hope this helps

golden_eye
Champ in-the-making
Champ in-the-making
Hello
i have almost the same need,i cant create space when i upload file.
With date function i check the date of uploaded file and then i want to create the file date space.
How can i these reach?
Some help would be really appreciated. Smiley Happy