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
- Sign in to the Portal as a portal administrator.
- In the Portal menu, click Home, then click the Administration menu icon.
- On the Administration page, click Site Management to access Manage Pages.
- Locate the portal page you want to export. Navigate through the page structure from the Content Root link to the target page.
- Click Export for that page.
- 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.
- 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.
- When the export completes, the portlet displays a success message.
- 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:
- Exporting pages or page hierarchies using the Manage Pages portlet
- Using XMLAccess to export and import Portal pages
Export using XML Access
You can use XML Access to export pages. Sample XML configuration files are located in <PortalServer_root>/doc/xml-samples.
-
Navigate to the
<PortalServer_root>/doc/xml-samplesdirectory:cd /opt/HCL/PortalServer/doc/xml-samples -
Copy the export page XML file (for example, as
ExportPage1.xml). - Open the copied file in a text editor.
- Replace the default content
uniquename="ibm.portal.ssa.SamplePage"with the unique name of the page you want to export. -
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>.xmlReplace
<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.xmlSave the
result.xmlfile in a temporary, easily accessible location. -
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>.xmlReplace
<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.xmlNote
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.
-
Verify the imported pages in the Manage Pages portlet to confirm the result. If you prefer export a page hierarchy, use the
ExportSubTree.xmlsample for exporting subtree of the content hierarchy. This script exports the page customizer place with all contained pages.
Related information
- Exporting and transferring parts of a portal configuration
- Sample XML configuration files
- What are the recommended ways to move a Portal environment to a different/updated OS?
- Transferring a complete configuration
- Using ReleaseBuilder effectively
How to generate a complete XMLAccess export of a Portal configuration