CreateTemplateFolder.xml

 

<?xml version="1.0" encoding="UTF-8"?>
<!--
CreateTemplateFolder.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 a template 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 -->

        <template-folder action="locate" 
                         objectid="rootFolder" 
                         uniquename="ibm.portal.template.root.folder"/>
      
        <!-- The new folder. parentid attribute must match the objectid of the parent. Change the uniquename attribute to create another folder.-->
        
        <template-folder action="update" 
                         uniquename="ibm.portal.SampleTemplateFolder"  
                         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="tempFolder.root">
                <url>file:///$server_root$/base/wp.xml/doc/xml-samples/rootFoldertitles_en.properties</url>
            </localedata>

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

        </template-folder>

    </portal>
</request>