CreatePageFromZip.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. <!-- Note that the preceding elements are needed because the XML request uses ID generating mode
  45. and the new page must refer to the portlet and the parent place, so the object IDs
  46. thePortlet and wps.content.root.My_Portal must be defined.
  47. If you use ID preserving mode and have the correct objectid values for these two resources,
  48. you do not need to locate them. -->
  49. <!-- The new page. contentparentref attribute must match the objectid of the parent.
  50. Change the uniquename attribute to create another page. -->
  51. <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.2">
  52. <localedata locale="en" prefix="page.sample">
  53. <url>file:///$server_root$/base/wp.xml/doc/xml-samples/pagetitles_en.properties</url>
  54. </localedata>
  55. <localedata locale="de" prefix="page.sample">
  56. <url>file:///$server_root$/base/wp.xml/doc/xml-samples/pagetitles_de.properties</url>
  57. </localedata>
  58. <!-- The content of static page in binary format
  59. attribute markup can be set to one of portal server supported markups
  60. attribute display-option can be set to "inline" or "iframe" or "ajax".-->
  61. <pagecontents markup="html" display-option="inline">
  62. <url>file:///$server_root$/base/wp.xml/doc/xml-samples/index1.zip</url>
  63. </pagecontents>
  64. <parameter name="com.ibm.portal.bookmarkable" type="string" update="set"><![CDATA[Yes]]></parameter>
  65. <parameter name="com.ibm.portal.friendly.name" type="string" update="set"><![CDATA[staticpage2]]></parameter>
  66. <parameter name="resourceaggregation.profile" type="string" update="set"><![CDATA[profiles/profile_dojo_lightweight.json]]></parameter>
  67. <!-- this parameter must match the name of static page -->
  68. <parameter name="com.ibm.portal.static.page.file.name.html" type="string" update="set"><![CDATA[index1.html]]></parameter>
  69. <access-control externalized="false" owner="uid=wpsadmin,o=defaultwimfilebasedrealm" private="false"/>
  70. <component action="update" active="true" domain="rel" ordinal="100" orientation="V" type="container">
  71. <component action="update" active="true" domain="rel" ordinal="100" orientation="V" type="container"/>
  72. <component action="update" active="true" domain="rel" ordinal="100" orientation="H" type="container">
  73. <!-- this parameter must match the portlet-container name in the static page -->
  74. <parameter name="com.ibm.portal.layoutnode.localname" type="string" update="set"><![CDATA[portletContainer1]]></parameter>
  75. <component action="update" active="true" domain="rel" ordinal="100" type="control">
  76. <!-- this parameter must match the portlet-window name in the static page -->
  77. <parameter name="com.ibm.portal.layoutnode.localname" type="string" update="set"><![CDATA[portletWindow1]]></parameter>
  78. <portletinstance action="update" domain="rel" portletref="theExamplePortlet" />
  79. </component>
  80. </component>
  81. </component>
  82. </content-node>
  83. </portal>
  84. </request>