Jul 11, 2013

Portal: Exporting entire page hierarcy

Tags: IBM Webspere Portal export entire page hierarchy

I was trying to export a page configuration today, using the XML Export files in Websphere Portal. There was this need to export the entire page tree, along with the main page. Struggled a lot before finding the exact syntax from the official documentation.

So here is it: You might probably google for the same, and could end up here:

<?xml version="1.0" encoding="UTF-8"?>
<request
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="PortalConfig_1.3.xsd"
    type="export">

    <!-- Sample for exporting subtree of the content hierarchy. This script exports the page customizer 
         place with all contained pages. -->
    <portal action="locate">
        <content-node action="export" uniquename="wps.My Portal" export-descendants="true"/>
    </portal>
</request>

The key here is the export-descendants="true" switch. It fetches the desendants as well. This is the equivalent of EXPORT option from Portal Administration console + YES button. It acutally provides three options - YES, NO, CANCEL while YES is for entire hierarchy, NO for just the current page and CANCEL to abort the operation.

For more syntax, here you go - the official doc: http://publib.boulder.ibm.com/infocenter/wpdoc/v510/topic/com.ibm.wp.ent.doc/wps/admxmsmp.html?noframes=true#admxmsmp__exportpage

No comments:

Post a Comment

You may also like these writeups

Related Posts with Thumbnails