Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Clone an entire site but with a different culture View modes: 
User avatar
Member
Member
asovrano-opera21 - 4/10/2013 6:16:18 AM
   
Clone an entire site but with a different culture
I need to create a copy of an existing site but all documents must have a different culture.
The new site should be chinese, and there are hundreds documents. It seems I can create a new document version page by page !!
I'm rather new to Kentico 5.5. Would you please tell me which is the best way to "clone" another site and then change the culture to all the documents to have a site in chinese culture ? I' appreciate your help very much, kind regards. A.

User avatar
Kentico Support
Kentico Support
kentico_romank - 4/10/2013 8:25:16 AM
   
RE:Clone an entire site but with a different culture
Hi,
I would say that the best way to copy a complete site is to use
export/import feature of Kentico CMS (http://devnet.kentico.com/docs/5_5r2/devguide/index.html?export_and_import_overview.htm) where you will export your website
and import it under diffrent name as your current website into the Kentico CMS
instalation.

Regrettably, the functionality of translating multiple pages is not provided
in your version of Kentico CMS. You can change culture for all existing documents
in Site Manager/Sites, in default culture dialog, but not translate then all into
a new culture version. You need to do it manually.

Best Regards,
Roman Konicek

User avatar
Member
Member
asovrano-opera21 - 4/11/2013 5:18:54 AM
   
RE:Clone an entire site but with a different culture
Dear Roman, I tried export/import of a site and I've a new "clone" site
Now I wanted to change the default culture and then remove all other cultures because the new site is not multi-language but only chinese.
It is not possible to remove other cultures because there are documents for that cultures.

I need to delete all documents of a specified culture to remove that culture from the site.
In Edit Mode - List there is a functionality to search and delete documents of a specified culture but ...
it does not seem to delete recursively and I've got hundreds documents and nested folders ! It does not delete children... !
How con I perform this operation in Kentico 5.5 ?
Thank you very very much for your help, kind regards. Andrea

User avatar
Kentico Support
Kentico Support
kentico_romank - 4/12/2013 2:18:23 AM
   
RE:Clone an entire site but with a different culture
Hi Andrea,

Regrettably it is not possible to delete document and all its child using CMS Desk. If you want to delete documents recursively you will have to do it via API. You can use SelectNodes function to get dataset with all child nodes. Than you go throught the dataset and create new object for each row in dataset. Then you call node.Delete(); function to delete the node.

For more information how you can do that see:
http://devnet.kentico.com/docs/devguide/index.html?selecting_nodes.htm
http://devnet.kentico.com/docs/devguide/index.html?delete_document.htm

I hope this information will help.

Best Regards,
Roman Konicek