Foros de discusión

change default page of c/portal/login

Jana Hoffmann, modificado hace 16 años.

change default page of c/portal/login

Junior Member Mensajes: 30 Fecha de incorporación: 26/10/07 Mensajes recientes
Hello guys,

I already changed my start page url. So my first page of liferay is a comunity and not the guest start page. Also users could sign in and out about the menue on the right top. With the button sign in or out they go automatically to a page that is on the guest comunity. I don't want this. I'd like to change this page behind the login portlet also to my comunity start page.
Is there any way to do this?!

Thank you very much.
thumbnail
Roman Hoyenko, modificado hace 16 años.

RE: change default page of c/portal/login

Liferay Master Mensajes: 878 Fecha de incorporación: 8/10/07 Mensajes recientes
c/portal/login is not a portlet, it is a jsp page here:
ROOT.war\html\portal\login.jsp

I think you can change where it will c/portal/login in struts-config.xml

<action path="/portal/login" type="com.liferay.portal.action.LoginAction">
<forward name="portal.login" path="portal.login" />
<forward name="/portal/touch_protected.jsp" path="/portal/touch_protected.jsp" />
</action>
Jana Hoffmann, modificado hace 16 años.

RE: change default page of c/portal/login

Junior Member Mensajes: 30 Fecha de incorporación: 26/10/07 Mensajes recientes
But how I can do this?!
thumbnail
Roman Hoyenko, modificado hace 16 años.

RE: change default page of c/portal/login

Liferay Master Mensajes: 878 Fecha de incorporación: 8/10/07 Mensajes recientes
Jana Hoffmann:
But how I can do this?!


You have two options:

1. change the struts-config.xml to go to your page
2. Change the theme to go to different URL - change $sign_in_url in init_custom.vm to your url.

I think the second choice is better.
Jana Hoffmann, modificado hace 16 años.

RE: change default page of c/portal/login

Junior Member Mensajes: 30 Fecha de incorporación: 26/10/07 Mensajes recientes
Could I just write $sign_in_url = "http://myurl/web/mycomunity/home" or how I have to define it?!
thumbnail
Roman Hoyenko, modificado hace 16 años.

RE: change default page of c/portal/login

Liferay Master Mensajes: 878 Fecha de incorporación: 8/10/07 Mensajes recientes
Jana Hoffmann:
Could I just write $sign_in_url = "http://myurl/web/mycomunity/home" or how I have to define it?!


look here:

ROOT.war\html\themes\_unstyled\templates\init.vm

to see how variables are defined. You can read about velocity variables initialization as well.
Basically

#set ($bottom_ext_include = "$dir_include/common/themes/bottom.jsp")
thumbnail
Wayne Christian, modificado hace 16 años.

RE: change default page of c/portal/login

Regular Member Mensajes: 104 Fecha de incorporación: 12/06/07 Mensajes recientes
What if I want to have a "sign in" page tailored to the community (a different page for each community),
so that things like the community name and page logo are on the sign-in page. How would I go about doing that?
thumbnail
Roman Hoyenko, modificado hace 16 años.

RE: change default page of c/portal/login

Liferay Master Mensajes: 878 Fecha de incorporación: 8/10/07 Mensajes recientes
If you are not logged in, you don't know what community user belongs to, they are all "Guest" users. Once they login, you don't need the login screen anymore emoticon
thumbnail
Brian Scott Schupbach, modificado hace 15 años.

RE: change default page of c/portal/login

Expert Mensajes: 329 Fecha de incorporación: 23/10/08 Mensajes recientes
Hi,

I would like to create a .jsp page that is handled almost exactly like the login.jsp.

The login.jsp is displayed in the content area of the theme associated with the community. I need to create a searchresults.jsp page that works exactly the same way.

Any suggestions?