<?xml version="1.0" encoding="UTF-8"?> <!-- CreateStaticPageFromZip.xml --> <request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" type="update" version="6.1.0.0" xsi:noNamespaceSchemaLocation="PortalConfig_6.1.0.xsd"> <!-- Sample for creating a static page that contains an existing portlet. This sample also demonstrates how Static Page content can be read from a zip files.--> <portal action="locate"> <!-- uid must match uid attribute of portlet-app in portlet.xml --> <web-app action="locate" domain="rel" uid="BlurbPortlet.3088d83ae7690017105c9e64cce97eb8"> <servlet action="locate" domain="rel" referenceid="Portlet_1"/> <portlet-app action="locate" domain="rel" name="Information Portlet Application" uid="BlurbPortlet.3088d83ae7690017105c9e64cce97eb8.1"> <!-- uniquename must match with portlet uniquename --> <portlet action="locate" domain="rel" name="Welcome to WebSphere Portal" objectid="portlet1" uniquename="wps.p.Welcome To WebSphere Portal"/> </portlet-app> </web-app> <content-node action="locate" domain="rel" uniquename="wps.content.root"/> <!-- Parent element under which the new page is inserted --> <content-node action="locate" domain="rel" objectid="homepage" uniquename="ibm.portal.Home"/> <!-- Note that the preceding elements are needed because the XML request uses ID generating mode and the new page must refer to the portlet and the parent place, so the object IDs portlet1 and parentPage must be defined. --> <!-- The new page. contentparentref attribute must match the objectid of the parent. Change the uniquename attribute to create another page. --> <content-node action="update" active="true" allportletsallowed="true" content-parentref="homepage" create-type="explicit" domain="rel" ordinal="1500" type="staticpage" uniquename="samplestaticpage3"> <localedata locale="en"> <title>Sample Static Page 3</title> </localedata> <!-- The content of static page are read from zip file. attribute markup can be set to one of portal server supported markups attribute display-option can be set to "inline" or "iframe" or "ajax".--> <pagecontents markup="html" display-option="inline"> <url>file:///$server_root$/base/wp.xml/doc/xml-samples/index1.zip</url> </pagecontents> <parameter name="com.ibm.portal.bookmarkable" type="string" update="set"> <![CDATA[Yes]]> </parameter> <parameter name="com.ibm.portal.friendly.name" type="string" update="set"> <![CDATA[staticpage3]]> </parameter> <!-- this parameter must match the name of static page --> <parameter name="com.ibm.portal.static.page.file.name.html" type="string" update="set"> <![CDATA[index1.html]]> </parameter> <access-control externalized="false" owner="uid=wpsadmin,o=defaultwimfilebasedrealm" private="false"/> <component action="update" active="true" domain="rel" ordinal="100" orientation="V" type="container"> <component action="update" active="true" domain="rel" ordinal="100" orientation="V" type="container"> <!-- this parameter must match the portlet-container name in the static page --> <parameter name="com.ibm.portal.layoutnode.localname" type="string" update="set"> <![CDATA[portletContainer1]]> </parameter> <component action="update" active="true" domain="rel" ordinal="100" type="control"> <!-- this parameter must match the portlet-window name in the static page --> <parameter name="com.ibm.portal.layoutnode.localname" type="string" update="set"> <![CDATA[portletWindow1]]> </parameter> <portletinstance action="update" domain="rel" portletref="portlet1" /> </component> </component> </component> </content-node> </portal> </request>