Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Paul Schmidt
Change Default Private User Page for New Users
1 de agosto de 2012 0:11
Respuesta

Paul Schmidt

Ranking: Junior Member

Mensajes: 30

Fecha de incorporación: 28 de julio de 2010

Mensajes recientes

Hello Community,

I want to define the Style of the default private user pages for new users, with a three column layout and six instances of our own portlets with a special configuration.

I tried to modify the portal-ext.properties, restart the portal and create a new user. But with no success. Neither the layout nor the portlets are right.

My entries (Liferay 6.0.6 CE):
# Selecting the layout template
default.user.layout.template.id=3_columns

# A try with default portlets
default.user.layout.column-1=82
default.user.layout.column-2=81
default.user.layout.column-3=80

The next thing I want to realize is, that a user is redirected to his private page after login. Is this possible without writing a hook?
I found a similar thread with this options, which don't wok for me:
## Redirecting to users private page after login
auth.forward.by.last.path=false
auth.forward.by.redirect=false


Can anybody help?

Best regards
P. Schmidt
Amit Doshi
RE: Change Default Private User Page for New Users
1 de agosto de 2012 0:23
Respuesta

Amit Doshi

Ranking: Liferay Master

Mensajes: 543

Fecha de incorporación: 29 de diciembre de 2010

Mensajes recientes

Paul :-
quote]

I want to define the Style of the default private user pages for new users, with a three column layout and six instances of our own portlets with a special configuration.

I tried to modify the portal-ext.properties, restart the portal and create a new user. But with no success. Neither the layout nor the portlets are right.

My entries (Liferay 6.0.6 CE):
# Selecting the layout template
default.user.layout.template.id=3_columns

# A try with default portlets
default.user.layout.column-1=82
default.user.layout.column-2=81
default.user.layout.column-3=80



You can set the private page layout using the below properties in portal-ext.properties.

#
# Set the name of the private layout.
#
default.user.private.layout.name=Welcome

#
# Set the layout template id of the private layout.
#
default.user.private.layout.template.id=2_columns_ii

#
# Set the portlet ids for the columns specified in the layout template.
#
default.user.private.layout.column-1=82,23,11
default.user.private.layout.column-2=29,8
default.user.private.layout.column-3=
default.user.private.layout.column-4=

#
# Set the friendly url of the private layout.
#
default.user.private.layout.friendly.url=/home

And it will work for the newly created user.


The next thing I want to realize is, that a user is redirected to his private page after login. Is this possible without writing a hook?
I found a similar thread with this options, which don't wok for me:
## Redirecting to users private page after login
auth.forward.by.last.path=false
auth.forward.by.redirect=false



Please find the attached image for your second question answer.

Thanks & Regards,
Amit Doshi
Adjunto

archivos adjuntos: forum.PNG (55,8k)
Paul Schmidt
RE: Change Default Private User Page for New Users
1 de agosto de 2012 5:11
Respuesta

Paul Schmidt

Ranking: Junior Member

Mensajes: 30

Fecha de incorporación: 28 de julio de 2010

Mensajes recientes

Hello Amit,

thanks for your reply. The first problem is solved. We will swap to LR 6.1 and use the lar Ex-/Import.
The 2nd problem seems a little bit more tricky because I want to redirect to /user/${user}/home and not to a static URL.

Do you have a solution for that?
Amit Doshi
RE: Change Default Private User Page for New Users
1 de agosto de 2012 5:16
Respuesta

Amit Doshi

Ranking: Liferay Master

Mensajes: 543

Fecha de incorporación: 29 de diciembre de 2010

Mensajes recientes

Then better to create LoginPostAction Hook and Add your code accordingly on the same.
Tejas Kanani
RE: Change Default Private User Page for New Users
1 de agosto de 2012 6:15
Respuesta

Tejas Kanani

Ranking: Liferay Master

Mensajes: 654

Fecha de incorporación: 6 de enero de 2009

Mensajes recientes

As far as I know you will have to create hook for this. Dynamically land user to their private page is not OOTB supported.
Refer this on how to create custom landing page using hook.
Custom Landing page using hook - Liferay 6.1

Regards,
Tejas