O'Reilly logo

GateIn Cookbook by Piergiorgio Lucidi, Luca Stancapiano, Ken Finnigan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Managing portal pages using XML

After creating a new portal site and the default portal layout, in this section we can continue to use the XML configuration to define all the pages for a new portal.

Getting ready

Create a new configuration file named pages.xml in the following path of the portal:

02portal.war/WEB-INF/conf/portal/portal/financials/page.xml

How to do it...

For each page you want to define for the portal, you need to enter a page XML element as follows:

  <page>
    <name>contactus</name>
    <title>Contact us</title> <access-permissions>Everyone</access-permissions> <edit-permission>*:/platform/administrators</edit-permission> <portlet-application> . . . </portlet-application> <gadget-application> . . . </gadget-application> <page-body></page-body> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required