CreatePageFromTemplate.xml 4.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. =================================================================
  4. * Licensed Materials - Property of IBM
  5. * (c) Copyright IBM Corp. 2003, 2010. All rights reserved.
  6. *
  7. * US Government Users Restricted Rights - Use, duplication or
  8. * disclosure restricted by GSA ADP Schedule Contract with IBM
  9. * Corp.
  10. *
  11. * DISCLAIMER OF WARRANTIES. The following [enclosed] code is
  12. * sample code created by IBM Corporation. This sample code is
  13. * not part of any standard or IBM product and is provided to you
  14. * solely for the purpose of assisting you in the development of
  15. * your applications. The code is provided "AS IS", without
  16. * warranty of any kind. IBM shall not be liable for any damages
  17. * arising out of your use of the sample code, even if they have
  18. * been advised of the possibility of such damages.
  19. *
  20. =================================================================
  21. -->
  22. <request
  23. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  24. xsi:noNamespaceSchemaLocation="PortalConfig_8.0.0.xsd"
  25. type="update"
  26. create-oids="true">
  27. <!-- Sample for creating a page that contains an existing portlet.
  28. This sample is very similar to DeployPortlet; the difference is that the portlet
  29. is not deployed (update actions) but only found (locate action).
  30. This sample also demonstrates how to set the skin for the new portlet and how
  31. NLS settings (page title and description) can be read from property files. -->
  32. <portal action="locate">
  33. <!-- uid must match uid attribute of portlet-app in portlet.xml -->
  34. <web-app action="locate" uid="com.ibm.wps.cp.portlet.tagcloud.webmod">
  35. <!-- uid must match uid attribute of concrete-portlet-app in portlet.xml -->
  36. <portlet-app action="locate" uid="com.ibm.wps.cp.portlet.tagcloud">
  37. <!-- name must match content of portlet-name subtag of concrete-portlet in portlet.xml -->
  38. <portlet action="locate" objectid="theExamplePortlet" name="Tag Cloud">
  39. </portlet>
  40. </portlet-app>
  41. </web-app>
  42. <!-- Parent element under which the new page is inserted -->
  43. <content-node action="locate" objectid="parentPage" uniquename="ibm.portal.Home"/>
  44. <content-node action="update" active="true" allportletsallowed="true" content-parentref="parentPage" create-type="explicit" domain="rel" ordinal="last" type="staticpage" uniquename="ibm.portal.ssa.SamplePage.Template">
  45. <localedata locale="en" prefix="page.sample">
  46. <url>file:///$server_root$/base/wp.xml/doc/xml-samples/pagetitles_en.properties</url>
  47. </localedata>
  48. <localedata locale="de" prefix="page.sample">
  49. <url>file:///$server_root$/base/wp.xml/doc/xml-samples/pagetitles_de.properties</url>
  50. </localedata>
  51. <pagecontents display-option="inline" markup="html"/>
  52. <parameter name="com.ibm.portal.bookmarkable" type="string" update="set"><![CDATA[Yes]]></parameter>
  53. <parameter name="com.ibm.portal.friendly.name" type="string" update="set"><![CDATA[staticpage2]]></parameter>
  54. <!-- this parameter must match the name of static page -->
  55. <parameter name="com.ibm.portal.static.page.file.name.html" type="string" update="set"><![CDATA[layout.html]]></parameter>
  56. <parameter name="com.ibm.portal.layout.template.ref" type="string" update="set"><![CDATA[dav:fs-type1/layout-templates/2ColumnEqual]]></parameter>
  57. <parameter name="resourceaggregation.profile" type="string" update="set">profiles/profile_full.json</parameter>
  58. <access-control externalized="false" owner="uid=wpsadmin,o=defaultwimfilebasedrealm" private="false"/>
  59. <component action="update" active="true" domain="rel" ordinal="100" orientation="V" type="container">
  60. <component action="update" active="true" domain="rel" ordinal="100" orientation="V" type="container"/>
  61. <component action="update" active="true" domain="rel" ordinal="100" orientation="H" type="container">
  62. <!-- this parameter must match the portlet-container name in the static page -->
  63. <parameter name="com.ibm.portal.layoutnode.localname" type="string" update="set"><![CDATA[ibmMainContainer]]></parameter>
  64. <component action="update" active="true" domain="rel" ordinal="100" type="control">
  65. <!-- this parameter must match the portlet-window name in the static page -->
  66. <parameter name="com.ibm.portal.layoutnode.localname" type="string" update="set"><![CDATA[portletWindow1]]></parameter>
  67. <portletinstance action="update" domain="rel" portletref="theExamplePortlet" />
  68. </component>
  69. </component>
  70. </component>
  71. </content-node>
  72. </portal>
  73. </request>