Foren

RE: Setting default "My Community" pages and layouts

Tim Carr, geändert vor 15 Jahren.

Setting default "My Community" pages and layouts

Junior Member Beiträge: 51 Beitrittsdatum: 01.02.09 Neueste Beiträge
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 M, geändert vor 15 Jahren.

RE: Setting default "My Community" pages and layouts

Regular Member Beiträge: 208 Beitrittsdatum: 28.01.08 Neueste Beiträge
Maybe try using the full Windows path for default.user.public.layout.lar instead and restart the portal. *Untested*
Tim Carr, geändert vor 15 Jahren.

RE: Setting default "My Community" pages and layouts

Junior Member Beiträge: 51 Beitrittsdatum: 01.02.09 Neueste Beiträge
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, geändert vor 15 Jahren.

RE: Setting default "My Community" pages and layouts

Junior Member Beiträge: 51 Beitrittsdatum: 01.02.09 Neueste Beiträge
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, geändert vor 15 Jahren.

RE: Setting default "My Community" pages and layouts - Resol

Junior Member Beiträge: 51 Beitrittsdatum: 01.02.09 Neueste Beiträge
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, geändert vor 14 Jahren.

RE: Setting default "My Community" pages and layouts

Junior Member Beiträge: 55 Beitrittsdatum: 23.09.09 Neueste Beiträge
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, geändert vor 14 Jahren.

RE: Setting default "My Community" pages and layouts

Liferay Master Beiträge: 894 Beitrittsdatum: 18.02.09 Neueste Beiträge
Hi,

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

Oli
Dennis Nes, geändert vor 14 Jahren.

RE: Setting default "My Community" pages and layouts

Junior Member Beiträge: 55 Beitrittsdatum: 23.09.09 Neueste Beiträge
Thank you. I tried it with full path, but didn't work. Now I know...
Frank Dux, geändert vor 13 Jahren.

RE: Setting default "My Community" pages and layouts

New Member Beiträge: 16 Beitrittsdatum: 04.02.08 Neueste Beiträge
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