HowTo: Configure Page content type and metadata mapping in UCM to SharePoint/Drupal website migration
HowTo: Configure Page Content Type and metadata mapping in UCM to SharePoint/Drupal website migration
Content Type and Metadata mapping of UCM to SharePoint/Drupal page content for website migration
- Map the Page/WebPage content type to Article Page
Content Type Mapping: WebPage -> Article Page - Mapped the common metadata fields for Page Content Type as shown below
Common metadata mapping fields:
Target Metadata
Mapping Type
Metadata Value
Title
Metadata
dDocTitle
Page Content
Script
Script to obtain Body from page
Page Image
Script
Script to obtain Image from page
-
Use the following scripts for Body and Image to get the page contents and images from page:
Target Metadata Field
PowerShell Script
Page Content
$result=$XmlHelper::GetValueByXPath($Content, '//wcm:element[@name="MainContent"]', "wcm", "http://www.stellent.com/wcm-data/ns/8.0.0");
return $result ;
Page Image
$ImageResult = $XmlHelper::GetValueByXPath($Content, '//wcm:element[@name="Image"]',"wcm","http://www.stellent.com/wcm-data/ns/8.0.0");
return $ImageResult
Comments