API
Version 7.x > API > ExportProvider and document exclusion View modes: 
User avatar
Member
Member
mantas.audickas-gmail - 1/23/2013 4:31:45 AM
   
ExportProvider and document exclusion
Hey,

I would like to have automated site export. I am looking to Import/Export API which offers few methods to do that.
However from API methods I was not able to find out easily how to exclude all documents?

In general I need to export complete site but no documents.

How can I do that?

thank you

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 2/5/2013 7:18:22 AM
   
RE:ExportProvider and document exclusion
Hi,

There are no detailed instructions on advanced or specific export scenarios.
A lot of information can be learned from the related UI codefiles - in ~\CMSModules\ImportExport\Controls\ folder on the contrary.

Shortly said, in your code, you will need to modify the ObjectProcessType for the Documents object type for the export settings object. You want to set it to "None" for documents, which will be:
settings.SetObjectsProcessType(ProcesObjectEnum.None, PredefinedObjectType.DOCUMENT, true);
where settings are SiteExportSettings object.

Hope this will help.

Regards,
Zdenek