Skip to content

How to single page or a page hierarchy

Applies to

HCL Digital Experience v8.5 and later

Introduction

This article provides step-by-step instructions for exporting a single page or a page hierarchy. You can export pages using the Manage Pages portlet or XML Access.

Instructions

You can export a page or a page hierarchy using the Manage Pages portlet or XML Access.

Export using Manage Pages

  1. Sign in to the Portal as a portal administrator.
  2. In the Portal menu, click Home, then click the Administration menu icon.
  3. On the Administration page, click Site Management to access Manage Pages.
  4. Locate the portal page you want to export. Navigate through the page structure from the Content Root link to the target page.
  5. Click Export for that page.
  6. The portlet prompts you to export either the selected page or the entire page hierarchy. Choose one of the following options:
    • Yes: Export the entire page hierarchy.
    • No: Export only the selected page.
    • Cancel: Stop the export.
  7. If you select Yes or No, a pop-up window opens to save the XML configuration file. Enter a file name and select a location.
  8. When the export completes, the portlet displays a success message.
  9. On the "Download complete" screen, you can click Open to view the saved XML file. Verify that it does not contain a <failure> tag. If review is skipped, close the window.

For more information, refer to:

Export using XML Access

You can use XML Access to export pages. Sample XML configuration files are located in <PortalServer_root>/doc/xml-samples.

  1. Navigate to the <PortalServer_root>/doc/xml-samples directory:

    cd /opt/HCL/PortalServer/doc/xml-samples
    
  2. Copy the export page XML file (for example, as ExportPage1.xml).

  3. Open the copied file in a text editor.
  4. Replace the default content uniquename="ibm.portal.ssa.SamplePage" with the unique name of the page you want to export.
  5. Run the following command to export the page:

    cd /opt/HCL/wp_profile/PortalServer/bin
    ./xmlaccess.sh -user <your_username> -password <your_password> -url http://<ipAddress>:<port>/wps/config/ -in /opt/HCLPortalServer/doc/xml-samples/<your_input_file>.xml -out /tmp/<your_result>.xml
    

    Replace <your_username>, <your_password>, <ipAddress>, <port>, <your_input_file>, and <your_result> with your values. For example:

    ./xmlaccess.sh -user wpsadmin -password wpsadmin -url http://localhost:10039/wps/config/ -in /opt/HCLPortalServer/doc/xml-samples/ExportPage1.xml -out /tmp/result.xml
    

    Save the result.xml file in a temporary, easily accessible location.

  6. Import the XML Access output using the following command:

    ./xmlaccess.sh -user <your_username> -password <your_password> -url http://<ipAddress>:<port>/wps/config/ -in /tmp/<your_input_file>.xml -out <your_result>.xml
    

    Replace <your_username>, <your_password>, <ipAddress>, <port>, <your_input_file>, and <your_result> with your values. For example:

    ./xmlaccess.sh -user wpsadmin -password wpsadmin -url http://localhost:10039/wps/config/ -in /tmp/importFile.xml -out result_import.xml
    

    Note

    You can also use the XML Import portlet to import the XML Access output. For more information, refer to Importing pages or page hierarchies by using the XML Import portlet.

  7. Verify the imported pages in the Manage Pages portlet to confirm the result. If you prefer export a page hierarchy, use the ExportSubTree.xml sample for exporting subtree of the content hierarchy. This script exports the page customizer place with all contained pages.

Related information