Setting the Default Landing Page in Liferay Portal

Users have the ability to set different default home, default landing pages, and default logout landing pages. There are two places where users can make these changes; in the portal-ext.properties, and in the Control Panel interface.

This article describes how to set the default landing page in Liferay Portal.

Resolution

Using the portal-ext.properties

  1. Start the portal.
  2. Create a site and a page.
  3. Copy the URL, paying attention to the portion after /web. (e.g. /web/comm-site/page1)
  4. Shut down the portal.
  5. Set the following in the portal-ext.properties
    1. auth.forward.by.last.path=true
    2. default.landing.page.path=/web/{site name}/{page name}
  6. Re-Start the portal.
  7. Sign in.
  8. The system will redirect the user to the default landing page without having to navigate to that site page first through the navigation dockbar.

Using the GUI

  1. Start the portal.
  2. Create a site and a page (e.g. “intranet” site and “calendar” page).
  3. Copy the URL, paying attention to the portion after /web. (e.g. /web/intranet/calendar)
  4. Navigate to the Control Panel > Portal Settings.
  5. In the Default Landing Page field, enter /web/{site name}/{page name}. Based on the example of /web/intranet/calendar.
  6. Click Save.
  7. To test, sign out and then sign back in. The system will redirect to the new default landing page.

Setting the properties in the Control Panel GUI will override the portal-ext.properties.

Additional Information

Setting the default landing page will not conflict with the Home URL settings. In fact, users can have a different home site and a different default landing page.

这篇文章有帮助吗?
1 人中有 1 人觉得有帮助