Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Tim Carr
Setting default "My Community" pages and layouts
12. Februar 2009 14:43
Antwort

Tim Carr

Rang: Junior Member

Nachrichten: 51

Eintrittsdatum: 1. Februar 2009

Neue 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 X
RE: Setting default "My Community" pages and layouts
12. Februar 2009 14:56
Antwort

Stan X

Rang: Regular Member

Nachrichten: 207

Eintrittsdatum: 27. Januar 2008

Neue Beiträge

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. Februar 2009 16:18
Antwort

Tim Carr

Rang: Junior Member

Nachrichten: 51

Eintrittsdatum: 1. Februar 2009

Neue 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
RE: Setting default "My Community" pages and layouts
16. Februar 2009 09:16
Antwort

Tim Carr

Rang: Junior Member

Nachrichten: 51

Eintrittsdatum: 1. Februar 2009

Neue 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
RE: Setting default "My Community" pages and layouts - Resol
16. Februar 2009 13:09
Antwort

Tim Carr

Rang: Junior Member

Nachrichten: 51

Eintrittsdatum: 1. Februar 2009

Neue 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
RE: Setting default "My Community" pages and layouts
25. November 2009 09:12
Antwort

Dennis Nes

Rang: Junior Member

Nachrichten: 55

Eintrittsdatum: 23. September 2009

Neue 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
RE: Setting default "My Community" pages and layouts
26. November 2009 01:25
Antwort

Oliver Bayer

Rang: Liferay Master

Nachrichten: 889

Eintrittsdatum: 18. Februar 2009

Neue Beiträge

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. November 2009 09:21
Antwort

Dennis Nes

Rang: Junior Member

Nachrichten: 55

Eintrittsdatum: 23. September 2009

Neue Beiträge

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. Februar 2011 11:02
Antwort

Anton D

Rang: New Member

Nachrichten: 16

Eintrittsdatum: 4. Februar 2008

Neue 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