SharePoint Development Bookmark and Share   
 index > SharePoint - Setup, Upgrade, Administration and Operation > How to copy a page from one site to another?
 

How to copy a page from one site to another?

Hello everybody,

I want to know, how to copy a page which includes dataviews,webparts ordata connectionsfrom one site to another?

And how to copy only aPAGEfrom one site to another?



Thank you advance!

Roy317  Wednesday, March 18, 2009 6:30 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 byRoy317 Monday, March 23, 2009 12:13 PM
  •  
Lambert Qin  Monday, March 23, 2009 5:30 AM
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.
Gautham Shantharam Pai  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 wewant to move one page which includesdataviews/webparts/data connectionsfrom 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 iton 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 siteis a new site; If the destination site is already existing and usedall the time, I think it is also not suitable.

So is there any other way to accomplish it?

Roy317  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.�/font>

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.
Lambert Qin  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 selectonly pages and not this folder.

Did I mention be careful with this method?
AndyGett Blog | AndyGett Twitter
AndyGett  Friday, March 20, 2009 4:17 AM

ThencanContent Deploymentmovethe page which includes dataviews/data connections/webparts successfully?

Roy317  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 byRoy317 Monday, March 23, 2009 12:13 PM
  •  
Lambert Qin  Monday, March 23, 2009 5:30 AM
HiLambert,

The information is reallyvery very helpful.

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

You can use google to search for other answers

Custom Search

More Threads

• Not able to edit Web Parts
• Sharepoint server 2007 collboration & Portal Feature use
• change the password in SharePoint
• Site collection output cache
• Trusted File Location
• which databases to back up?
• Assign Default Image in Sharepoint Picture/Hyperlink data type
• email enabling issue with form library using subdomain email
• new created column doesn't show up in editing model
• Error loading .docx file