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
- userPrivatePage
- userPublicPage
- sitePublicPage
- sitePrivatePage
- organizationPublicPage
- organizationPrivatePage
- role
- userGroup
custom.landing.page.type={userPrivatePage/userPublicPage/sitePublicPage/sitePrivatePage/organizationPublicPage/organizationPrivatePage/role/userGroup}
This propery need to be set in portal.properties
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 +
######Download
- Packaged War & Complete source can be download from [Release section] (https://github.com/opensourceforlife/CustomLandingPage-Hook/releases "Release Section")
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
######Supported Liferay Versions
- Liferay 6.2.0 CE
######Download
- Packaged War & Complete source can be download from [Release section] (https://github.com/opensourceforlife/CustomLandingPage-Hook/releases "Release Section")
- 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
######Download
- Packaged War & Complete source can be download from [Release section] (https://github.com/opensourceforlife/CustomLandingPage-Hook/releases "Release Section")
!! Stands Runnder Up in Liferay Marketplace App Contest !!
For any issue/support, you can either reach out to me at [email protected]. Or you can create a issue in Github issues
Have a happy Custom Landing !!! :)