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



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


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="" type="string" update="set"><![CDATA[page1]]></parameter>


<parameter name="" type="string" update="set"><![CDATA[]]></parameter>

3. Import pageExport.xml

Now page1 will not have any friendly url.


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