Foros de discusión

Default Login Page

Megha Shah, modificado hace 12 años.

Default Login Page

New Member Mensajes: 21 Fecha de incorporación: 29/09/11 Mensajes recientes
Hi,
I am developing a new Portal for my company.
Requirement is:
1. I want to construct a URL for my company; lets call it http://mycompany.com which should display the login page for users.
2. Once the authentication is successful, the user must be redirected to a homepage of my company called http://mycompany.com/home

How do I get this done? By going through some forum posts and wiki I have understood, this needs to be done by overwriting some properties in portal.properties through portal-ext.properties. But can someone tell me exactly which properties should I change/overwrite with respect to the example given above?
thumbnail
Ravi Kumar Gupta, modificado hace 12 años.

RE: Default Login Page

Liferay Legend Mensajes: 1302 Fecha de incorporación: 24/06/09 Mensajes recientes
create a portal-ext.properties file in webapps/root/WEB-INF/classes (in case of tomcat) and then add the properties you want..
thumbnail
Sandeep Nair, modificado hace 12 años.

RE: Default Login Page

Liferay Legend Mensajes: 1744 Fecha de incorporación: 6/11/08 Mensajes recientes
Go to Control panel. Click on Portal Settings from left. Change the landing page to whatever url you want to redirect after login

Change the following property for login url
#
# Enter a URL that will be used to login portal users whenever needed. By
# default, the portal's login page is used.
#
#auth.login.url=/web/guest/home
Megha Shah, modificado hace 12 años.

RE: Default Login Page

New Member Mensajes: 21 Fecha de incorporación: 29/09/11 Mensajes recientes
Sandeep Nair:
Go to Control panel. Click on Portal Settings from left. Change the landing page to whatever url you want to redirect after login

Change the following property for login url
#
# Enter a URL that will be used to login portal users whenever needed. By
# default, the portal's login page is used.
#
#auth.login.url=/web/guest/home



I changed the as per following in the Portal Settings:
Home URL : /portal/Launch
Default Landing Page : /portal/Home
Default Logout Page : /portal/Home

But I get an error while to trying to sign in as:

The requested resource was not found.
http://localhost:8080/portal/Home

From my logs I see this exception:

10:23:36,016 INFO [PortalImpl] Current URL /portal/Launch generates exception: null
10:23:36,016 INFO [PortalImpl]
10:23:51,157 INFO [PortalImpl] Current URL /portal/Home generates exception: null

Screenshots of errors attached.

Archivos adjuntos:

thumbnail
Sandeep Nair, modificado hace 12 años.

RE: Default Login Page

Liferay Legend Mensajes: 1744 Fecha de incorporación: 6/11/08 Mensajes recientes
Hi Megha,

Give the path that is after localhost:8080 like if it is http://localhost:8080/web/portal/home then put /web/portal/home

Regards,
Sandeep
Megha Shah, modificado hace 12 años.

RE: Default Login Page

New Member Mensajes: 21 Fecha de incorporación: 29/09/11 Mensajes recientes
Sandeep Nair:
Hi Megha,

Give the path that is after localhost:8080 like if it is http://localhost:8080/web/portal/home then put /web/portal/home

Regards,
Sandeep


Is this correct ?
Home URL: /portal/Launch
Default Landing Page: /portal/Launch/Home

Screenshot is also attached.

Archivos adjuntos:

thumbnail
Sandeep Nair, modificado hace 12 años.

RE: Default Login Page

Liferay Legend Mensajes: 1744 Fecha de incorporación: 6/11/08 Mensajes recientes
Give me the url that you want to redirect to. I mean click on the page where you want user to be redirected, copy the complete url starting from http://localhost:8080....
and paste it here.
Megha Shah, modificado hace 12 años.

RE: Default Login Page

New Member Mensajes: 21 Fecha de incorporación: 29/09/11 Mensajes recientes
Sandeep Nair:
Give me the url that you want to redirect to. I mean click on the page where you want user to be redirected, copy the complete url starting from http://localhost:8080....
and paste it here.


Hi Sandeep,

When I start my server I get this default page
http://localhost:8080
I want to change this URL to read:
http://localhost:8080/portal/Launch - This should be my custom login page, as per my needs

Then when one logs in through the above, my landing page URL must be
http://localhost:8080/portal/Home - This should be the home page displayed to a logged in user
thumbnail
Sandeep Nair, modificado hace 12 años.

RE: Default Login Page

Liferay Legend Mensajes: 1744 Fecha de incorporación: 6/11/08 Mensajes recientes
Hi,

HAve you created those two pages in first place. If so then make /portal/Launch as you first page from manage pages

Then assuming that u have already the page called http://localhost:8080/portal/Home make the home url blank and default landing page url to /portal/Home

You should see that page after login

Regards,
sandeep
Megha Shah, modificado hace 12 años.

RE: Default Login Page

New Member Mensajes: 21 Fecha de incorporación: 29/09/11 Mensajes recientes
Sandeep Nair:
Hi,

HAve you created those two pages in first place. If so then make /portal/Launch as you first page from manage pages

Then assuming that u have already the page called http://localhost:8080/portal/Home make the home url blank and default landing page url to /portal/Home

You should see that page after login

Regards,
sandeep


Ah... I had'nt created pages emoticon
Will explore this.
Thanks for the help.
Megha Shah, modificado hace 12 años.

RE: Default Login Page

New Member Mensajes: 21 Fecha de incorporación: 29/09/11 Mensajes recientes
After creating appropriate pages, it worked. Thanks.emoticon
thumbnail
Sandeep Nair, modificado hace 12 años.

RE: Default Login Page

Liferay Legend Mensajes: 1744 Fecha de incorporación: 6/11/08 Mensajes recientes
Cool emoticon