Foren

default landing page

chandrajeet padhy, geändert vor 12 Jahren.

default landing page

New Member Beiträge: 5 Beitrittsdatum: 05.01.11 Neueste Beiträge
Hi,

I have two organizations created and each having an user role with few users under each organization.

I want when a user of a specific organization logs in, he should see the organization's public page
and similarly a user belonging to the other organization should see that organization's public page on landing after login.

How do I?

Thanks
thumbnail
Sandeep Nair, geändert vor 12 Jahren.

RE: default landing page

Liferay Legend Beiträge: 1744 Beitrittsdatum: 06.11.08 Neueste Beiträge
Try creating a login post hook. Someone has already created hook, you can see if it suits your need.

http://www.liferay.com/downloads/liferay-portal/community-plugins/-/software_catalog/products/6837361?_98_redirect=%2Fdownloads%2Fliferay-portal%2Fcommunity-plugins

If not you can customize the above

Regards,
Sandeep
thumbnail
Sagar A Vyas, geändert vor 12 Jahren.

RE: default landing page

Liferay Master Beiträge: 679 Beitrittsdatum: 17.04.09 Neueste Beiträge
Hi Sandeep,

Here, I am bit confuse.

As per my knowledge we can do it by setting up role and permission - Correct me if I am wrong.

I have seen in other post also which recommend hook here,

Is there any special benefit with hook or only this solution is available ?

Thanks,
Sagar Vyas
thumbnail
Arvind Mishra, geändert vor 12 Jahren.

RE: default landing page

Regular Member Beiträge: 226 Beitrittsdatum: 13.02.08 Neueste Beiträge
Hi Sagar

What he is looking for is to redirect user to different Organization landing pages, based on user's access to that particular organization. You cant do it using roles/permissions etc.
Thumb rule is , whenever you have to redirect users to different login pages based on certain logic, you have to extend LandingPageAction.

Thanks
Arvind
Nisarg Parikh, geändert vor 12 Jahren.

RE: default landing page

Expert Beiträge: 262 Beitrittsdatum: 31.12.09 Neueste Beiträge
Hi,

You can see below action class.

/com/liferay/portlet/login/action/LoginAction.java

in that file there is a code for redirecting user to specific page. once successfully login you can get User information from session and then
check the organization and redirect accordingly.

Hope that might help you.

-Nisarg
thumbnail
Sagar A Vyas, geändert vor 12 Jahren.

RE: default landing page

Liferay Master Beiträge: 679 Beitrittsdatum: 17.04.09 Neueste Beiträge
Arvind Mishra:
Hi Sagar

What he is looking for is to redirect user to different Organization landing pages, based on user's access to that particular organization. You cant do it using roles/permissions etc.
Thumb rule is , whenever you have to redirect users to different login pages based on certain logic, you have to extend LandingPageAction.

Thanks
Arvind


Thank you Arvind for elaborating this.

It helps emoticon

Thanks,
Sagar Vyas