none
How to copy a page from one site to another?

    Question

  • Hello everybody,

    I want to know, how to copy a page which includes dataviews,webparts or data connections from one site to another?

    And how to copy only a PAGE from one site to another?



    Thank you advance!

    Wednesday, March 18, 2009 6:30 AM

Answers

  • Hi Roy,

     

    The content deployment feature could deploy the pages and maintain the dataviews/data connections/webparts.

     

    As I explained in the previous reply, you should first use the feature to deploy the site collection (empty Blank Site template is recommended), then use the Deploy only new, changed, or deleted content opinion to deploy the modified pages.

    It is recommended to do enough tests before using the feature in your production environment.

     

    If you feel the OOB content deployment feature cannot fulfill your requirements, you could try to use the 3rd part solutions.

    Such as:

    SharePoint Content Deployment Wizard (http://spdeploymentwizard.codeplex.com/)

    stsadm extensions provided by MVP: Gary Lapointe (http://stsadm.blogspot.com/)

     

    Hope the information can be helpful.

    -lambert


    Lambert Qin | Microsoft Online Support Engineer
    How to ask a question in the forum (http://support.microsoft.com/kb/555375)
    Posting is provided "AS IS" with no warranties, and confers no rights.
    • Marked as answer by Roy317 Monday, March 23, 2009 12:13 PM
    Monday, March 23, 2009 5:30 AM

All replies

  • Roy,

    If its a common page for all sites, you can place the page in _layouts folder of 12 hive.


    Gautham S Pai | Posting is provided "AS IS" with no warranties, and confers no rights.
    Wednesday, March 18, 2009 7:14 AM
  •  Hi Gautham,

    Thanks for your reply.

    If it is not a common page for all sites, I mean if we want to move one page which includes dataviews/webparts/data connections from one site collection to another site collection? Then how can we do this?

    I know the Sharepoint Designer works, but our production environment doesn't allow to use it on production servers. So is there any other way we can use to accomplish it?

    Manage Content and Structure in MOSS 2007 can move/copy page. But as I know, it can just used within one site collection, it cannot accross different site collections. In addtion, it can only works to the PURE page which doesn't include webparts/dataviews/data connections. For the page which include webparts/dataviews/data connections, it can't move/copy them. Is that right?

    For Site Template, although it can save a site as a template which includes custom pages, but I think it can only be used when the destination site is a new site; If the destination site is already existing and used all the time, I think it is also not suitable.

    So is there any other way to accomplish it?

    Thursday, March 19, 2009 5:33 AM
  • Hi Roy,

     

    You want to move one page which includes dataviews/webparts/data connections from one site collection to another site collection.

     

    Basically, the web part page cannot be moved because the data used in the web part cannot be retained.

    For example, a web part page in a site collection displays all items in a list, after the web part page moved to another site collection, the list with the same GUID could not be found, so the web part cannot be displayed correctly in the destination site collection.

    You may get the error message: “List does not exist The page you selected contains a list that does not exist.”

     

    If your real concern is how to deploy the changes from stage server to the production server, I suggest you to use content deployment to deploy the changes.

     

    For more information about content deployment, please refer to: Plan content deployment (http://technet.microsoft.com/en-us/library/cc263428.aspx) for more information.

     

    As we have fix some Content Deployment issues in the Infrastructure Update, it is suggested to apply the Infrastructure Update (http://technet.microsoft.com/en-us/office/sharepointserver/bb735839.aspx#Infra) before planning content deployment.

     

    Let me know if I misunderstand your real concerns.

    -lambert
    Lambert Qin | Microsoft Online Support Engineer
    How to ask a question in the forum (http://support.microsoft.com/kb/555375)
    Posting is provided "AS IS" with no warranties, and confers no rights.
    • Marked as answer by Mike Walsh FIN Friday, March 20, 2009 9:06 AM
    • Unmarked as answer by Roy317 Saturday, March 21, 2009 2:51 AM
    Friday, March 20, 2009 2:33 AM
  •  You can use webdav to copy pages. Navigate to your source site with Windows Explorer, copy and paste into the destination site. Care should be taken with this quick and dirty technique which is a far cry from a best practice. Sometimes metadata does not copy with it, and as Lambert suggests, the actual web parts in a web part zone probably will be lost. Also, the dataviews rely on list guids by default, but I believe you can change it to use a list name. Finally, the Forms directory of a document library should generally not be copied; if you are copying multiple pages, make sure you select only pages and not this folder.

    Did I mention be careful with this method?
    AndyGett Blog | AndyGett Twitter
    • Marked as answer by Mike Walsh FIN Friday, March 20, 2009 9:06 AM
    • Unmarked as answer by Roy317 Saturday, March 21, 2009 2:51 AM
    Friday, March 20, 2009 4:17 AM
  • Then can Content Deployment move the page which includes dataviews/data connections/webparts successfully?

    Friday, March 20, 2009 9:04 AM
  • Hi Roy,

     

    The content deployment feature could deploy the pages and maintain the dataviews/data connections/webparts.

     

    As I explained in the previous reply, you should first use the feature to deploy the site collection (empty Blank Site template is recommended), then use the Deploy only new, changed, or deleted content opinion to deploy the modified pages.

    It is recommended to do enough tests before using the feature in your production environment.

     

    If you feel the OOB content deployment feature cannot fulfill your requirements, you could try to use the 3rd part solutions.

    Such as:

    SharePoint Content Deployment Wizard (http://spdeploymentwizard.codeplex.com/)

    stsadm extensions provided by MVP: Gary Lapointe (http://stsadm.blogspot.com/)

     

    Hope the information can be helpful.

    -lambert


    Lambert Qin | Microsoft Online Support Engineer
    How to ask a question in the forum (http://support.microsoft.com/kb/555375)
    Posting is provided "AS IS" with no warranties, and confers no rights.
    • Marked as answer by Roy317 Monday, March 23, 2009 12:13 PM
    Monday, March 23, 2009 5:30 AM
  • Hi Lambert,

    The information is really very very helpful.

    Thanks for your great help, have a nice day:-)
    Monday, March 23, 2009 12:15 PM