We have a publishing site with variations. There is a dev server and a stage server and the content is pretty much same in both. Recently I was editing one of the webpart content pages in the dev server via SPD 2010 and it opened the page layout for that page from the stage server. I digged around a bit and after a few powershell executions, found that the publishing page xml content has two references to the stage server:
$web = get-spweb($url0)
$pweb = [Microsoft.Sharepoint.Publishing.PublishingWeb]::GetPublishingWeb($web)
$ppage = $pweb.GetPublishingPage($page0)
$layout = $ppage.layout
$layout.PreviewImageUrl
$ppage.ListItem.Xml
The Xml starts like <z:row xmlns:z='#RowsetSchema' ... "
I tried updating PreviewImageUrl (via page checkout, checkin) by removing the hardcoded stage server reference and the update was never succcessful.
The Xml contained two hard-coded references to our stage server in the PublishingVariationRelationshipLinkFieldID and PublishingPageLayout fields, which I'm not sure how to update.
I looked at the "RelationShips List" in which the references are relative.
Any ideas to update the xml via powershell or UI?