Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Custom Landing Page Hook for Liferay
branch: master


Custom Landing Page Hook

After a user logs into Liferay, it is a common requirement to be able to redirect them to a different page based on their Organization or Site membership. This hook allows you to specify the desired redirection behavior using a properties file setting. Based on the properties file, it will redirect the user to their private page, public page, their default site's public/private homepage, or their default organization's public/private homepage.

It's a Custom Landing Page Hook developed in Liferay 6.1.1 GA2. It will allow you to choose on which page user will land on after login. Right now it's having below options for landing page.

Set this property as per your needs for landing page after user log in. It could be from one of the value from below options

  1. userPrivatePage
  2. userPublicPage
  3. sitePublicPage
  4. sitePrivatePage
  5. organizationPublicPage
  6. organizationPrivatePage
  7. role
  8. userGroup{userPrivatePage/userPublicPage/sitePublicPage/sitePrivatePage/organizationPublicPage/organizationPrivatePage/role/userGroup} 

This propery need to be set in located in Custom Landing Page hook itself. Either you can modify it directly in war. Or you can download the source code from Git repositry and you can build war from source with your desired changes.


  • Added provision to define custom landing page for specific Role & User Group
  • For role & userGroup, provide landing page complete relative URL in role OR userGroup's custom attribute with key "landingPage"
    landingPage = /web/mysite/home
Supported Liferay Versions
  • Liferay 6.2.0 CE +
  • Liferay 6.2.10 EE +


There ia a new option added by which any specific page wihtin a Site/Organization can be made a landing page for that Site/Organization instead of their home page.

Just create a custom attribute of Site/Organization by mentioning the page friendlyURL.

For defining,

  • Site/Organization's Public page, create custom attribute of type "TextField" with key "landingPagePublic" and define value as page's friendlyURL. i.e. /welcome
  • Site/Organization's Private page, create custom attribute of type "TextField" with key "landingPagePrivate" and define value as page's friendlyURL. i.e. /myhome

Define specific landing page for site/organization via Custom Attribute in Custom Landing Page Hook

Supported Liferay Versions
  • Liferay 6.2.0 CE


  • Equivalent to v1.2 in Liferay Marketplace submission)
Supported Liferay Versions
  • Liferay 6.1.1 CE
  • Liferay 6.1.20 EE
  • Liferay 6.1.2+ CE
  • Liferay 6.1.30+ EE

Custom Landing Page Hook on Liferay Marketplace !!

!! Stands Runnder Up in Liferay Marketplace App Contest !!

For any Issue/Support

For any issue/support, you can either reach out to me at Or you can create a issue in Github issues

Have a happy Custom Landing !!! :)

Something went wrong with that request. Please try again.