MovePage.xml

 

<?xml version="1.0" encoding="UTF-8"?>
<!--
-->

<request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
         xsi:noNamespaceSchemaLocation="PortalConfig_1.4.xsd"
     type="update" 
         create-oids="true">

    <portal action="locate">

        <!-- skin for the portlet -->
        <skin action="locate" objectid="Shadow" uniquename="ibm.portal.skin.IBM" />

        <!-- uid must match uid attribute of portlet-app in portlet.xml -->

        <web-app action="locate" uid="com.ibm.wps.portlets.welcome">

            <!-- uid must match uid attribute of concrete-portlet-app in portlet.xml -->

            <portlet-app action="locate" uid="com.ibm.wps.portlets.welcome.1">

                <!-- name must match content of portlet-name subtag  of concrete-portlet in portlet.xml -->
                <portlet action="locate" objectid="thePortlet" name="Welcome Portlet"></portlet>

            </portlet-app>

        </web-app>

        <!-- Parent element under which the new page is inserted -->
        <content-node action="locate" objectid="parentPage" uniquename="ibm.portal.Home" />

        <!-- Note that the preceding elements are needed because the XML request uses ID generating mode
            and the new page must refer to the portlet and the parent place, so the object IDs
            thePortlet and wps.content.root.My_Portal must be defined.
            If you use ID preserving mode and have the correct objectid values for these two resources,
            you do not need to locate them. -->

        <!-- The new page. contentparentref attribute must match the objectid of the parent. 
            Change the uniquename attribute to create another page. -->

        <content-node action="update" uniquename="ibm.portal.SamplePage.4101" objectid="SamplePage4101" ordinal="last"
            content-parentref="parentPage" active="true" create-type="explicit" type="page">
            <supported-markup markup="html" update="set" />
            <localedata locale="en">
                <title>Sample Page 4101</title>
            </localedata>

            <component action="create" ordinal="100" type="container" orientation="H">
                <component action="create" ordinal="100" type="control" skinref="Shadow">
                    <!-- portletref must match the objectid attribute of portlet -->
                    <portletinstance action="update" portletref="thePortlet" />
                </component>
            </component>

        </content-node>

        <content-node action="update" 
                      uniquename="ibm.portal.SamplePage.4102" 
                      objectid="SamplePage4102" 
                      ordinal="last"
                      content-parentref="parentPage" 
                      active="true" 
                      create-type="explicit" 
                      type="page">

            <supported-markup markup="html" update="set" />

            <localedata locale="en">
                <title>Sample Page 4102</title>
            </localedata>

            <component action="create" ordinal="100" type="container" orientation="H">

                <component action="create" ordinal="100" type="control" skinref="Shadow">
                    <!-- portletref must match the objectid attribute of portlet -->
                    <portletinstance action="update" portletref="thePortlet" />
                </component>

            </component>
        </content-node>
        
        <content-node action="locate" uniquename="ibm.portal.SamplePage.4101" />
        
        <content-node action="update" uniquename="ibm.portal.SamplePage.4102" content-parentref="SamplePage4101" />
        <!--   Note that this specifies a new parent that differs from the previous one.  -->

    </portal>

</request>