Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Tim Carr
Setting default "My Community" pages and layouts
12 de febrero de 2009 14:43
Respuesta

Tim Carr

Ranking: Junior Member

Mensajes: 51

Fecha de incorporación: 1 de febrero de 2009

Mensajes recientes

Hello...

I'm trying to setup a specific page layout using a .lar file for my user's My Community Public pages and disable their private pages. I've gone through the wiki article here and created the config below, but folks are still getting their private pages and not loading up the default .lar.

Here's my entries in my portal-ext.properties:
layout.user.private.layouts.enabled=false
layout.user.private.layouts.auto.create=false
layout.user.public.layouts.auto.create=true
default.user.public.layout.lar=${resource.repositories.root}/deploy/MyPublicPages.lar


And I've got the MyPublicPages.lar file in c:\liferay\liferay-portal-5.2.1\deploy directory. I'm running the bundled Tomcat 5.2.1 release.

What might I be missing?
Stan X
RE: Setting default "My Community" pages and layouts
12 de febrero de 2009 14:56
Respuesta

Stan X

Ranking: Regular Member

Mensajes: 204

Fecha de incorporación: 27 de enero de 2008

Mensajes recientes

Maybe try using the full Windows path for default.user.public.layout.lar instead and restart the portal. *Untested*
Tim Carr
RE: Setting default "My Community" pages and layouts
12 de febrero de 2009 16:18
Respuesta

Tim Carr

Ranking: Junior Member

Mensajes: 51

Fecha de incorporación: 1 de febrero de 2009

Mensajes recientes

Thanks, but no luck there. I still get the standard layout. I've also checked the log file - it's not kicking out any errors. Also, folks still have access to the private pages, so it looks like no part of this is working. Is perhaps there a major property that needs to get changed to get these things to be viable options?
Tim Carr
RE: Setting default "My Community" pages and layouts
16 de febrero de 2009 9:16
Respuesta

Tim Carr

Ranking: Junior Member

Mensajes: 51

Fecha de incorporación: 1 de febrero de 2009

Mensajes recientes

Does anyone have an idea as to which logging property I need to turn up to try to capture what happens when someone logs in for the first time and pages are created / rights are denied?

Thanks...
Tim Carr
RE: Setting default "My Community" pages and layouts - Resol
16 de febrero de 2009 13:09
Respuesta

Tim Carr

Ranking: Junior Member

Mensajes: 51

Fecha de incorporación: 1 de febrero de 2009

Mensajes recientes

OK, found out what needs to happen.

1) Trying to use the {$resource...} in the file name for the .lar file doesn't work. I used a direct path.
2) You've got to use double slashes ( " \\ " ) in the path to get the system to recognize it. My statement that eventually worked was:

layout.user.public.layouts.auto.create=true
default.user.public.layouts.lar=C:\\Liferay\\liferay-portal-5.2.1\\deploy\\MyPublicPages.lar
Dennis Nes
RE: Setting default "My Community" pages and layouts
25 de noviembre de 2009 9:12
Respuesta

Dennis Nes

Ranking: Junior Member

Mensajes: 55

Fecha de incorporación: 23 de septiembre de 2009

Mensajes recientes

I have the same problem. After creation, it is just the same private page that was there before. Did you find a solution for this (LR 5.2.3)

Thanks
Oliver Bayer
RE: Setting default "My Community" pages and layouts
26 de noviembre de 2009 1:25
Respuesta

Oliver Bayer

Ranking: Liferay Master

Mensajes: 883

Fecha de incorporación: 18 de febrero de 2009

Mensajes recientes

Hi,

in liferay 5.2.3 you should use the following property:
1#
2# Specify a LAR file that can be used to create the user private layouts. If
3# this property is set, the previous layout properties will be ignored.
4#
5#default.user.private.layouts.lar=[b]${liferay.home}[/b]/deploy/default_user_private.lar
6...
7#default.user.public.layouts.lar=[b]${liferay.home}[/b]/deploy/default_user_public.lar

Oli
Dennis Nes
RE: Setting default "My Community" pages and layouts
26 de noviembre de 2009 9:21
Respuesta

Dennis Nes

Ranking: Junior Member

Mensajes: 55

Fecha de incorporación: 23 de septiembre de 2009

Mensajes recientes

Thank you. I tried it with full path, but didn't work. Now I know...
Anton D
RE: Setting default "My Community" pages and layouts
2 de febrero de 2011 11:02
Respuesta

Anton D

Ranking: New Member

Mensajes: 16

Fecha de incorporación: 4 de febrero de 2008

Mensajes recientes

Using Liferay 6.0.5 on Tomcat 6 on XP, I had to use the full path and the double back-slashes to get this to work:

"layout.user.public.layouts.auto.create=true
default.user.public.layouts.lar=C:\\Liferay\\liferay-portal-6.0.5\\deploy\\MyPublicPages.lar"

NOTE: One conflict I had to remove was the User Group association which I had previously setup as the default association for new users. The User Group was automatically creating public/private user pages for new users within My Public Pages and My Private Pages. These page superceded the .lar import settings that I configured in portal-ext.properties, and had to be removed.

-- Frank