cancel
Showing results for 
Search instead for 
Did you mean: 

Creating multiple folders

ozkan
Champ in-the-making
Champ in-the-making
Hi everyone
I'm new in alfresco, I want to create a root folder in the my repo, and multiple folders inside this root folder. And finally creating a picture inside the every folders. is there any simple method ? thanks
8 REPLIES 8

romschn
Star Collaborator
Star Collaborator
You should login to alfresco share interface, click on Repository from the header. Then you will have an option to create Folder. You can create nested folders inside it and upload a content to it. This is the simplest way to manually create folders/content.
If you want to do it programmatically then simplest way would be to write a custom webscript to create folder structure as per your requirement.

ozkan
Champ in-the-making
Champ in-the-making
Thanks romschn ,first way is not attractive for me , becasuse I have many folders. Can you give me some details about how can I write a custom webscript to create folder structure?

romschn
Star Collaborator
Star Collaborator
Take a look at - http://ecmarchitect.com/alfresco-developer-series-tutorials/webscripts/tutorial/tutorial.html to get understanding and implementation details about creating custom webscript.

For your specific requirement, you can create an XML schema as shown in example below as per your required implementation.

<root>
<name>ABC</name>
<level1folder>
   <name>level1foldername</name>
   <level2folder>
         <name>level2foldername</name>
         <content1location>c:/folder1/folder2/image1.jpg</content1location>
         …..
         …..
     </level2folder>
     …..
…..
</root>

and in your java controller class, parse the XML and using either NodeService or FileFolderService create the nodes in alfresco.

Hope this helps.

ozkan
Champ in-the-making
Champ in-the-making
Thanks again, it was helpful

romschn
Star Collaborator
Star Collaborator
You may want to mark the comment as Useful Smiley Happy

ozkan
Champ in-the-making
Champ in-the-making
Yes Smiley Happy

ozkan
Champ in-the-making
Champ in-the-making
Mr. Chauhan I have 129005 folders , and all folders have  pictures. Can I create this structure at alfresco with webscripts ?

ozkan
Champ in-the-making
Champ in-the-making
Solved, I use with bulk file system service,
https://code.google.com/p/alfresco-bulk-filesystem-import/