Foros de discusión

How to navigate the user his organization page directly.

Kiran Kumar Boyini, modificado hace 11 años.

How to navigate the user his organization page directly.

Expert Mensajes: 287 Fecha de incorporación: 2/06/11 Mensajes recientes
Hi All,

I want to navigate the user to his organization site or organization default page ,which he belongs after sign in successfully.

how it is possible .


Thanks,

Kiran
thumbnail
Bart Simpson, modificado hace 11 años.

RE: How to navigate the user his organization page directly.

Liferay Master Mensajes: 522 Fecha de incorporación: 29/08/11 Mensajes recientes
Create a
login.events.post
hook and extend the Action class.
Set the "LAST_PATH" attribute in session to the user's site / organization using something like :-
 com.liferay.portal.service.GroupLocalServiceUtil.getUserGroups(long userId)).get(0).getFriendlyURL()
thumbnail
Apoorva Prakash, modificado hace 11 años.

RE: How to navigate the user his organization page directly.

Liferay Master Mensajes: 658 Fecha de incorporación: 15/06/10 Mensajes recientes
Hello Kiran Kumar,

There are some properties in portal.properties, they may help you...

##
## 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. site
## 4. organization
##
custom.landing.page.type={userPrivatePage/userPublicPage/site/organization}


Hope this will help...

Thanks and Regards,
Apoorva Prakash