掲示板

Directing Users to their cummunity Site after Login

9年前 に Toch d Ninja によって更新されました。

Directing Users to their cummunity Site after Login

Regular Member 投稿: 105 参加年月日: 06/10/30 最新の投稿
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
9年前 に Samuel Kong によって更新されました。

RE: Directing Users to their cummunity Site after Login

Liferay Legend 投稿: 1902 参加年月日: 08/03/10 最新の投稿
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
9年前 に Jack Bakker によって更新されました。

RE: Directing Users to their cummunity Site after Login

Liferay Master 投稿: 978 参加年月日: 10/01/03 最新の投稿
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
9年前 に Toch d Ninja によって更新されました。

RE: Directing Users to their cummunity Site after Login

Regular Member 投稿: 105 参加年月日: 06/10/30 最新の投稿
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
9年前 に Jack Bakker によって更新されました。

RE: Directing Users to their cummunity Site after Login

Liferay Master 投稿: 978 参加年月日: 10/01/03 最新の投稿
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
9年前 に Pankaj Kathiriya によって更新されました。

RE: Directing Users to their cummunity Site after Login

Liferay Master 投稿: 722 参加年月日: 10/08/05 最新の投稿
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.