Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Anil KC
Organization based landing page.
5. März 2013 03:17
Antwort

Anil KC

Rang: Junior Member

Nachrichten: 35

Eintrittsdatum: 20. Dezember 2012

Neue Beiträge

I have multiple subdomains like siteA.liferay.com and siteB.liferay.com and so on. So, if someone wants to navigate with siteA.liferay.com then the user should land to a page of Organization A and if he is navigates through siteB.liferay.com then he is landed to Organization B page. Is there anything liferay provides already or we have to implement ourselves? Any help on how we can achieve this?
Felix J Christy
RE: Organization based landing page.
5. März 2013 05:49
Antwort

Felix J Christy

Rang: Regular Member

Nachrichten: 111

Eintrittsdatum: 25. August 2009

Neue Beiträge

Hi,

You can implement the same by creating custom service pre action. There, you can just check the parameter that you passed in the URL and redirect to the relevant organization.

Thanks,
Felix
Anil KC
RE: Organization based landing page.
6. März 2013 07:07
Antwort

Anil KC

Rang: Junior Member

Nachrichten: 35

Eintrittsdatum: 20. Dezember 2012

Neue Beiträge

I have another scenario in which we have just one Organization landing page of parent organization. If we have two sub organization A and B then i want to display contents(like logo or other details) of organization A in that landing page if the request is coming from siteA.liferay.com and contents of B similar case for siteB.liferay.com. Is this possible?how?
Dipanjan Das
RE: Organization based landing page.
8. März 2013 14:13
Antwort

Dipanjan Das

Rang: Junior Member

Nachrichten: 30

Eintrittsdatum: 28. September 2012

Neue Beiträge

You could write a post login (after log in through parent login page) hook that will redirect user to its appropriate organization.

You could find current user organization through themeDisplay/ User object:
And the re-direction code will be:

Map<String, String[]> params = new HashMap<String, String[]>();
LastPath lastPath = new LastPath("/web",<ORGANIZATION_PAGE>, params);
session.setAttribute(WebKeys.LAST_PATH, lastPath);
Anil KC
RE: Organization based landing page.
10. März 2013 20:44
Antwort

Anil KC

Rang: Junior Member

Nachrichten: 35

Eintrittsdatum: 20. Dezember 2012

Neue Beiträge

Dipanjan Das:
You could write a post login (after log in through parent login page) hook that will redirect user to its appropriate organization.


If i was not clear enough, the landing page i want is not after Post Login. It is the first time when users land from different subdomains like siteA.liferay.com and siteB.liferay.com
Dipanjan Das
RE: Organization based landing page.
11. März 2013 15:44
Antwort

Dipanjan Das

Rang: Junior Member

Nachrichten: 30

Eintrittsdatum: 28. September 2012

Neue Beiträge

You can try it through 'virtual host' setup through control pannel and set different page URL for different sub domain.