Fórum

Directing Users to their cummunity Site after Login

Toch d Ninja, modificado 9 Anos atrás.

Directing Users to their cummunity Site after Login

Regular Member Postagens: 105 Data de Entrada: 30/10/06 Postagens Recentes
Hi,

How can Liferay 6.2 be configured so as to enable users be automaticaslly directed to their specific liferay Sites after login.
The current default liferay 6.2 configuration does not direct users to their respective sites, all users land on the same guest Site after login.
Any help on how to achieve the above?

Regards,
Toch
thumbnail
Samuel Kong, modificado 9 Anos atrás.

RE: Directing Users to their cummunity Site after Login

Liferay Legend Postagens: 1902 Data de Entrada: 10/03/08 Postagens Recentes
Try adding the following to your portal(-ext).properties files:

default.landing.page.path=/user/${liferay:screenName}/home


For more details, take a look at the documentation for the "default.landing.page.path" property in portal.property.
thumbnail
Jack Bakker, modificado 9 Anos atrás.

RE: Directing Users to their cummunity Site after Login

Liferay Master Postagens: 978 Data de Entrada: 03/01/10 Postagens Recentes
Toch d Ninja:

How can Liferay 6.2 be configured so as to enable users be automaticaslly directed to their specific liferay Sites after login.
The current default liferay 6.2 configuration does not direct users to their respective sites, all users land on the same guest Site after login.
Any help on how to achieve the above?


Hi Toch,

I have done a post login hook that looks at the virtual host of a site that the user initially signed in at and looks it up in portal-ext.properties like the below and then redirects the user to that page.

default.landing.page.path.*someVirtualHost*=/group/*siteUrl*/home

Likely a better approach would be to add a Site Custom Field to reference the targeted page a user should be redirected to after successful login to the site.

Jack
Toch d Ninja, modificado 9 Anos atrás.

RE: Directing Users to their cummunity Site after Login

Regular Member Postagens: 105 Data de Entrada: 30/10/06 Postagens Recentes
Hi,

Thanks for your feedbacks. However, the two solutions listed above did not solve the problem.
The first feedback directs to the screenName so it redirects to the users public or private page. This is NOT the default site. The default Site is a site created from Site admin and assigned to the user.

We are very much open to further suggestions on how to resolve the issue.

*Also, how do I remove Site Directory from the GoTo link at the dockbar? This is not wanted in most production deployments as Users are NOT supposed to have power to change their Sites.

Regards,
Toch
thumbnail
Jack Bakker, modificado 9 Anos atrás.

RE: Directing Users to their cummunity Site after Login

Liferay Master Postagens: 978 Data de Entrada: 03/01/10 Postagens Recentes
Glad we are open to suggestions.

wrt your dockbar question, best not to add a new question/issue to an existing thread.

At this point I don't know what you are talking about wrt to "their community Site" or a users "default site". Users can be associated with multiple Sites.
thumbnail
Pankaj Kathiriya, modificado 9 Anos atrás.

RE: Directing Users to their cummunity Site after Login

Liferay Master Postagens: 722 Data de Entrada: 05/08/10 Postagens Recentes
Please have a look at marketplace app named "Custom Landing Page Hook" app, that would be helpful To redirect user to user's site after login.


For changing Goto links, you have to override(using Hook) jsp of dockbar-portlet responsible for Site-links.