Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Joseph John
To redirect a user to its Organization site once login
July 18, 2012 9:07 PM
Answer

Joseph John

Rank: Junior Member

Posts: 75

Join Date: July 25, 2011

Recent Posts

Hi
I am using LR 6.1 CE using MySQL on CentOS.
I have created multiple organization and corresponding sites for them.
Then I have created some users and assigned organizations for them, and sites corresponding to the organization.
Now I have observed when they log in, they are not getting organization home page or organization site.
I would like to request advice on how to make the user get the default home page of the organization he belongs as soon he logs in.
Guidance requested


Thanks
Joseph John
http://www.meetup.com/EmiratesLoCo/
Tejas Kanani
RE: To redirect a user to its Organization site once login
July 19, 2012 1:03 AM
Answer

Tejas Kanani

Rank: Liferay Master

Posts: 655

Join Date: January 6, 2009

Recent Posts

Hi Joseph,

I guess, you can achieve it via writing your custom login.events.post action. Check this wiki

Add make sure you have added logic properly so that if user if member of more than one organization, then it should be landed to proper organization landing page.
Joseph John
RE: To redirect a user to its Organization site once login
July 19, 2012 1:53 AM
Answer

Joseph John

Rank: Junior Member

Posts: 75

Join Date: July 25, 2011

Recent Posts

Hi Tejas
Thanks for the reply, this information is new for me.
I am evaluating LR along with other portal solution, One of the points which I have to evaluate is that how easy is for the admin to change the settings or customization of user properties.
I checked the wiki,

If you want to include more complex logic, you will need to modify the DefaultLandingPageAction.java file

The LR admin need to compile the SRC and deploy. I think this will make portal admin guys sad.
Thanks
Joseph John
http://www.meetup.com/EmiratesLoCo/
Sachin Mane
RE: To redirect a user to its Organization site once login
July 19, 2012 1:59 AM
Answer

Sachin Mane

Rank: Junior Member

Posts: 76

Join Date: April 9, 2012

Recent Posts

Refer to following section in portal.properties -

 1
 2##
 3## Default Landing Page
 4##
 5
 6    #
 7    # Set the default landing page path for logged in users relative to the
 8    # server path. This is the page users are automatically redirected to after
 9    # logging in. For example, if you want the default landing page to be
10    # http://localhost:8080/web/guest/login, set this to /web/guest/login. To
11    # activate this feature, set auth.forward.by.last.path to true. To customize
12    # the behavior, see com.liferay.portal.events.DefaultLandingPageAction in
13    # the "login.events.post" property above.
14    #
15    default.landing.page.path=
16    #default.landing.page.path=/web/guest/login
DarshanKumar N Bhatia
RE: To redirect a user to its Organization site once login
July 19, 2012 2:37 AM
Answer

DarshanKumar N Bhatia

Rank: Junior Member

Posts: 85

Join Date: March 2, 2010

Recent Posts

Hi,

After Login Forward user to it's private/public page. Link
Same way u can forward user to it's orgnization ,U can achieve it by writing Hook.

HTH..