Foros de discusión

how to change Startup page and redirect to a particular page on sign in?

Vivek N Kapse, modificado hace 15 años.

how to change Startup page and redirect to a particular page on sign in?

Junior Member Mensajes: 42 Fecha de incorporación: 9/09/08 Mensajes recientes
Hi,

I am using liferay5.1.1. I want to know how to change the default startup page. The default startup page is /web/guest/home I want to change it to something else like /web/myapp/loginpage. How do I do that.
Also when a user signs in how to redirect to a particular page? And on sign out I want to have loginpage shown.
Please let me know how can I achieve these.

IT's very URGENT!!!

Any help, please.
thumbnail
Lari Tuominen, modificado hace 15 años.

RE: how to change Startup page and redirect to a particular page on sign in

Expert Mensajes: 283 Fecha de incorporación: 7/11/07 Mensajes recientes
Hi,

You can achieve these requirements by modifying liferay's portal-ext.properties. So basically go inside ROOT.war/WEB-INF/lib and inside portal-impl.jar. From there you find portal-properties. These properties can be overriden in portal-ext.properties. Locate this file in WEB-INF/classes.

What you need to do for example to default landing page is to place these to portal-ext.properties

auth.forward.by.last.path=true
default.landing.page.path=/the/page/you/want

Check also other configurations from portal-properties - it is a pretty well documented file.

- Lari
Vivek N Kapse, modificado hace 15 años.

RE: how to change Startup page and redirect to a particular page on sign in

Junior Member Mensajes: 42 Fecha de incorporación: 9/09/08 Mensajes recientes
Thanks a ton, Lari. I did as you suggested and everything I wanted works fine.
thumbnail
Sanket K Mehta, modificado hace 15 años.

RE: how to change Startup page and redirect to a particular page on sign in

Junior Member Mensajes: 37 Fecha de incorporación: 22/10/08 Mensajes recientes
Hey..I followed the same steps.
I modified the portal-ext.properties file at the mentioned location.
But still the same defualt page opens at the startup.
I've deployed the ext folder and restarted d server.
Still no change.
thumbnail
Lari Tuominen, modificado hace 15 años.

RE: how to change Startup page and redirect to a particular page on sign in

Expert Mensajes: 283 Fecha de incorporación: 7/11/07 Mensajes recientes
What do you mean by start page, hopefully page after login, because that's what it should change
If it does not work. Try changing these properties straight to portal-impl.jar/portal.properties and see if that works. If it works then your portal-ext.properties are not fetched correctly.

- Lari