留言板

Multiple Sites with Different Landing Pages

Andy Lim,修改在8 年前。

Multiple Sites with Different Landing Pages

New Member 帖子: 9 加入日期: 14-12-19 最近的帖子
I have a question. Is it possible to have a different landing page for different site in Liferay?
Let's say I have setup 2 private sites, each site have different landing page after user login.

Thanks in advance.
thumbnail
Denis Signoretto,修改在7 年前。

RE: Multiple Sites with Different Landing Pages (答复)

Expert 帖子: 375 加入日期: 09-4-21 最近的帖子
Hi Andy,

AFAIK it's not possible out of the box but you can write your own hook to adapt Liferay to your needs.
A good starting point for this customization is this Custom Landing Page Hook available on marketplace. Source code is available here.

Regards,
Denis.
Andy Lim,修改在7 年前。

RE: Multiple Sites with Different Landing Pages

New Member 帖子: 9 加入日期: 14-12-19 最近的帖子
Hi Dennis,

Thank you for your reply. The Custom Landing Page Hook is exactly what I require.
I suppose for different sign out page for multiple site would require a custom hook to achieve it as well.

Regards,
Andy
thumbnail
Denis Signoretto,修改在7 年前。

RE: Multiple Sites with Different Landing Pages

Expert 帖子: 375 加入日期: 09-4-21 最近的帖子
Hi Andy,

yes, you can include in your hook a custom logic for logout using/changing the following properties

logout.events.pre
logout.events.post


Best Regards,
Denis.
Andy Lim,修改在7 年前。

RE: Multiple Sites with Different Landing Pages

New Member 帖子: 9 加入日期: 14-12-19 最近的帖子
Hi Denis,

I will explore further on this. Thank you for the guidance.

Thanks & Regards,
Andy