+

Search Tips   |   Advanced Search

CreateUrl.xml

 

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

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

    <!-- Sample for creating a URL mapping context for "SamplePage." See DeployPortlet.xml. -->

    <portal action="locate">

        <!-- Locate the resource and name it "Favorites."-->

        <content-node action="locate" 
                      uniquename="ibm.portal.SamplePage" 
                      objectid="SamplePage"/>

        <!-- The label defines the URL, e.g. <hostname>/wps/portal/<portal id>/samples. -->

        <url-mapping-context action="update" 
                             label="samples">

            <!-- It's also accessible by <hostname>/wps/portal/<portal id>/examples. -->

            <additional-label>examples</additional-label>

            <!-- The link to the resource -->

            <portal-url resourceref="SamplePage" locale="en"/>

        </url-mapping-context>

    </portal>
</request>