Giter VIP home page Giter VIP logo

customlandingpage-hook's Introduction

OS4L 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
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.

###v1.2.2

  • 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

###v1.2.1

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

######Download

###v1.1

  • 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

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 [email protected]. Or you can create a issue in Github issues

Have a happy Custom Landing !!! :)

customlandingpage-hook's People

Contributors

opensourceforlife avatar sbilo avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.