Fórum

Dynamically change startup page

Bering Strait, modificado 12 Anos atrás.

Dynamically change startup page

New Member Postagens: 11 Data de Entrada: 23/06/10 Postagens Recentes
I have a requirement to change the start up page dynamically according to the virtual host name in the URL. I googled the approach and found that index.jsp was the place to make change. However I debugged 6.0.6 and found that index.jsp was not used by Liferay at all. I changed PortalImpl.getHomeURL to set the default company home url, but it did not work. Any idea how to change the default /web/guest to another URL?
thumbnail
Rojalin Patri, modificado 12 Anos atrás.

RE: Dynamically change startup page

Expert Postagens: 287 Data de Entrada: 22/03/11 Postagens Recentes
Hi,
The default company home url can be set in portal-ext.properties which overrides the default setting of liferay.
So you can set "company.default.home.url=your desired page location" in portal-ext.properties.
Hope it would help.