Friday, 1 August 2014

How to exclude the friendly name of a page in the path

My Page Structure is Content Root -> Home -> page1->page2

Friendly URL of the pages are:

Home :Home

page1:page1

page2:page2

URL for the page page2 is /wps/portal/Home/page1/page2 (or wps/portal/Home/page1/page2 for an authenticated user)

image

I want to exclude a page (say page1) in the hierarchy; my url should look like /wps/Home/page2.

To achieve these, follow the steps below

1. Export the page page1,say pageExport.xml

2. In pageExport.xml, change

<parameter name="com.ibm.portal.friendly.name" type="string" update="set"><![CDATA[page1]]></parameter>

to

<parameter name="com.ibm.portal.friendly.name" type="string" update="set"><![CDATA[com.ibm.portal.friendly.wildcard]]></parameter>

3. Import pageExport.xml

Now page1 will not have any friendly url.

image

Note: you can’t assign com.ibm.portal.friendly.wildcard to a page friendly name using Portal admin console when creating the page.

No comments:

Post a Comment