Best Practices
General > Best Practices > Bulk custom document creation View modes: 
User avatar
Member - 5/4/2011 12:20:56 AM
Bulk custom document creation
I am fairly new to Kentico and I've been asked to implement a feature:

I have 2 documents Prj.SomeGallery and Prj.SomeGalleryImage.
Prj.SomeGalleryImage is a child of Prj.SomeGallery.

The Prj.SomeGallery has it's fields (Name, ThumbnailImage, Description, LinkURL etc.)
Teh Prj.SomeGalleryImage merely has (Image, AltText)

I need to create a feature that allows the user to bulk upload images and get the CMS to automatically create the Prj.SomeGalleryImage child documents under the selected Prj.SomeGallery document.

thanks in advance.

User avatar
Kentico Support
Kentico Support
kentico_radekm - 5/11/2011 3:21:32 AM
RE:Bulk custom document creation

If you were using cms.file document type, you could use File import tool, allowing you to upload images (or other kind of files) and create corresponding documents automatically. However, it works for cms.file document type only.

In your case, I would recommend you to use our API and ensure it code. We have examples how to create new document of given document type, and also how to create document with attachments. You can find API examples on, sections Managing documents and Managing attachments and files. Thank you.

Best Regards,
Radek Macalik