Duplicate contents in different domains


#1

Enonic version: YourEnonicVersion
OS: YourOS

Is there any way to duplicate contents in different domains without rebuilding them?
The content is a page consists of multiple parts and in different order.


#2

Hi Sepideh,

The Data Toolbox is an excellent tool for exporting and importing any content (or contents) from any XP server to another (or the same). You just download the content you need as a zip and upload on the other server (install Data Toolbox in both places).


#3

With different domains, perhaps you mean sites. Then the answer would be first click [duplicate] and then [move] in Content Studio. If the page uses components from an app that the new site does not you will get a render error. Then you must either add the missing app or remove those components.


#4

It doesn’t help, since changes wouldn’t apply to duplicated contents.


#5

Hmm, what are you actually trying to achieve? And perhaps also the reasoning, the why. That would probably help us give you the most useful information.


#6

First I’d like to point out that duplicating content is a bad practice and will affect SEO badly.

Do you really need to duplicate the entire page content?

What if you simply convert some layout or part on the page into a fragment.
Then use that fragment across multiple sites (if that works, I have not tested)


#7

You can make more or less the whole page a layout fragment. It’s not allowed to put a layout inside a layout, but I believe there is a trick: You can make a layout a fragment, and put that fragment inside another layout. So if you make a layout that is simply a div without any styling you should be able to put all the parts and layouts inside that layout as fragments, and finally even convert that “container” layout to a fragment. I think you can make fragments inside fragments indefinitely :slight_smile:


#8

Hmm. I don’t think your suggestion will work, and if ut does, it is most likely a bug