+1-888-365-2779
Try Now
More in this section
Categories
Bloggers
Blogs RSS feed

Copy Page Groups Between Sites In Multisite Scenario

by Stanislav Velikov
This blog provides a sample web form that can be used to copy a specific page and all of its child pages between two Sitefinity sites in multisite scenario.

This can be very useful if you create new site and don't want to copy the whole page structure from another site, with this sample you can only copy specific pages between sites to avoid recreating them multiple times in different sites.

The complete code for the coping pages between sites is available for download here.
In the sample web form there are four textboxes that accept the:

Name of the site to copy the page from
Name of the page to be copied
The culture of the page to copy (if the site have multiple cultures)
The name of the site to copy the page to
The culture of the site to copy the page to.

A limitation to the approach is to copy a page in one culture as page in completely different culture the sample assumes that you need to copy only certain pages from one site into another site and those two sites have the same cultures.
Coping a page in EN culture from a site into a site that have FR culture can prove to result in problems in the copied page, please avoid this.

Here is a video on how the copy implementation is used to copy a page.

2 comments

Leave a comment
  1. Jesse Feb 14, 2014
    This is good, we have to do just that- move some pages from one site into another. So where do you put the scripts and run them from to get the form and functionality to transfer pages?
  2. Eduardo Nov 13, 2014
    It doesn't work in Sitefinity 7

    Leave a comment