+

Search Tips   |   Advanced Search

CreateApplicationFolder.xml

 

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

<request
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="PortalConfig_6.1.0.xsd"
    type="update"
    domain="comm">

    <!-- Sample for creating an application folder below the root folder.
         This sample also demonstrates how NLS settings (folder title and description) 
         can be read from property files. -->

    <portal action="locate">

        <!-- Parent element under which the new folder is inserted -->
        <application-folder action="locate" 
                            objectid="rootFolder" 
                            uniquename="ibm.portal.application.root.folder"/>
      
        <!-- The new folder. parentid attribute must match the objectid of the parent. 
             Change the uniquename attribute to create another folder.-->
        
        <application-folder action="update" 
                            uniquename="ibm.portal.SampleFolder"  
                            parent-ref="rootFolder">

            <!-- The title and description for the folder are read from property files. 
                 The property keys must end with the strings title, description, and keywords. 
                 (Folders do not support keywords.) The prefix attribute specifies a string that is
                 prepended to the property key so that you can keep titles for different resources in 
                 the same property file. -->

            <localedata locale="en" prefix="appFolder.root">
                <url>file:///$server_root$/base/wp.xml/doc/xml-samples/rootFoldertitles_en.properties</url>
            </localedata>

            <localedata locale="de" prefix="appFolder.root">
                <url>file:///$server_root$/base/wp.xml/doc/xml-samples/rootFoldertitles_de.properties</url>
            </localedata>

        </application-folder>

    </portal>
</request>