HowTo: Configure Page content type and metadata mapping in UCM to SharePoint/Drupal website migration

Follow

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

    1. Map the Page/WebPage content type to Article Page
      Content Type Mapping:  WebPage -> Article Page

    2. Mapped the common metadata fields for Page Content Type as shown below
      Common metadata mapping fields:

      ucmmapping-1.png

       

      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



    3. Use below 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



      ucmmapping-2.png

 

Was this article helpful?
0 out of 0 found this helpful

Comments