CreateLegacyPage.xml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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 legacy 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. <skin action="locate" objectid="Standard" uniquename="ibm.portal.85Standard"/>
  34. <web-app action="locate" uid="com.ibm.wps.portlets.welcome">
  35. <!-- uid must match uid attribute of concrete-portlet-app in portlet.xml -->
  36. <portlet-app action="locate" uid="com.ibm.wps.portlets.welcome.1">
  37. <!-- name must match content of portlet-name subtag of concrete-portlet in portlet.xml -->
  38. <portlet action="locate" objectid="theExamplePortlet" name="Welcome Portlet">
  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" uniquename="ibm.portal.legacy.SamplePage.2" ordinal="last" content-parentref="parentPage" active="true" create-type="explicit" type="page">
  45. <supported-markup markup="html" update="set"/>
  46. <!-- The title and description for the page are read from property files. The property keys must end with the strings
  47. title, description, and keywords. (Pages do not support keywords.) The prefix attribute specifies a string that is
  48. prepended to the property key so that you can keep titles for different resources in the same property file. -->
  49. <localedata locale="en" >
  50. <title>Legacy page example</title>
  51. </localedata>
  52. <component action="create" ordinal="100" type="container" orientation="H">
  53. <component action="create" ordinal="100" type="control" skinref="Standard">
  54. <!-- portletref must match the objectid attribute of portlet -->
  55. <portletinstance action="update" portletref="theExamplePortlet"/>
  56. </component>
  57. </component>
  58. </content-node>
  59. </portal>
  60. </request>