Developer forum

Forum » CMS - Standard features » Copying a new master site with multiple language variants including content

Copying a new master site with multiple language variants including content

Mikkel Larsen
Reply

I have the following setup running on DW Version 8.9.2.21

Master site 1

  • Language variant: 1.a
  • Language variant: 1.b
  • Language variant: 1.c

Master site 2 (Does not exist today) Master site 2 will be a site seperate from the original, showing only content from a specific business area from master site 1

  • Language variant: 2.a
  • Language variant: 2.b
  • Language variant: 2.c

We want to create a copy of the Master site 1 with all of its content. 
We will then delete all content that is not relevant to the business area. 

Is it possible to copy the content pages from master 1 in all languages to master 2, and keep all relevant master/child relations? 

An example could be the contact page in 2.a has a masterpageid to the contact page in master site 2. 

We tried copying language versions, moving content etc. But we did not succeed in keeping the relations.

 


Replies

 
Nicolai Pedersen
Reply

Hi Mikkel

That is currently not possible. You can copy a master, but its languages will not get copied.

So copy the master, create new languages from the new master, and edit it... My best bet currently

 
Mikkel Larsen
Reply

Hi Nicolai.

Thank you very much for your answer. 
Do you know of any workarounds at all?

I am asking, since the client has 10 language variants, and the pages in question adds op to around 800.

It will take a lot of man hours to recreate all the relevant pages.

BR 

 
Nicolai Pedersen
Reply

I am sorry, but I have no great ideas. Only difficult ones

  • Copy things in the database using SQL. Not easy since you have pages, with items, paragraphs, with items, and items with items and items with list of other items etc. So it is extremely complicated also due to the inheritance of languages. Which is why this is also not supported on the code base.
    This will be a lot easier depending on your item type structure and how much they depend on each other.
  • You can get our copy website code and see if you can work something out with that. But again, it is unbelievable complex due to item relations, language inheritance, drafts, versioning, permissions and a shit load of other things...

It might be simpler to do it in bulk. First copy the master, then the languages - they will have some information on them what they were copied from.

Then by manipulating the masterid of area, page and paragraph table, you might be able to re-establish inhertance for the copies...

Sorry about this....

BR Nicolai

 

You must be logged in to post in the forum