Friday, February 25, 2011

Changing portal page to use a layout template

If you create a portal page from portal administration user interface:


the chances are you will not be able to use the "PageBuilder2" feature to add new portlet into the page (using "Actions" - "Customize").  To enable the page to use the feature you need to do the following:
1. Export the page definition into xml file
2. Update the xml file by adding the following parameter for the specific <content node>


            <parameter name="com.ibm.portal.layout.template.expiration" type="string" update="set"><![CDATA[1297730961223]]></parameter>
            <parameter name="com.ibm.portal.layout.template.file.name.html" type="string" update="set"><![CDATA[layout.html]]></parameter>
            <parameter name="com.ibm.portal.layout.template.lastmodified" type="string" update="set"><![CDATA[1297644561353]]></parameter>
            <parameter name="com.ibm.portal.layout.template.markup" type="string" update="set"><![CDATA[html]]></parameter>
            <parameter name="com.ibm.portal.layout.template.ref" type="string" update="set"><![CDATA[dav:fs-type1/layout-templates/3ColumnCenter]]></parameter>

into the <content-node> stanza for the specified portal page.

3. We also need to update the type of the content node to "staticpage"

<content-node action="update" active="true" allportletsallowed="true" content-parentref="Z6_020K9B1A0823E0IE07U5O500O0" create-type="explicit" domain="rel" objectid="Z6_020K9B1A0GIU80IE2099SD20H6" ordinal="600" type="staticpage">

4. Re-import the xml file

Hope this helps..

No comments:

Post a Comment