Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Tim Carr
Setting default "My Community" pages and layouts
February 12, 2009 2:43 PM
Answer

Tim Carr

Rank: Junior Member

Posts: 51

Join Date: February 1, 2009

Recent Posts

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
February 12, 2009 2:56 PM
Answer

Stan X

Rank: Regular Member

Posts: 207

Join Date: January 27, 2008

Recent Posts

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
February 12, 2009 4:18 PM
Answer

Tim Carr

Rank: Junior Member

Posts: 51

Join Date: February 1, 2009

Recent Posts

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
February 16, 2009 9:16 AM
Answer

Tim Carr

Rank: Junior Member

Posts: 51

Join Date: February 1, 2009

Recent Posts

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
February 16, 2009 1:09 PM
Answer

Tim Carr

Rank: Junior Member

Posts: 51

Join Date: February 1, 2009

Recent Posts

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
November 25, 2009 9:12 AM
Answer

Dennis Nes

Rank: Junior Member

Posts: 55

Join Date: September 23, 2009

Recent Posts

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
November 26, 2009 1:25 AM
Answer

Oliver Bayer

Rank: Liferay Master

Posts: 889

Join Date: February 18, 2009

Recent Posts

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
November 26, 2009 9:21 AM
Answer

Dennis Nes

Rank: Junior Member

Posts: 55

Join Date: September 23, 2009

Recent Posts

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
February 2, 2011 11:02 AM
Answer

Anton D

Rank: New Member

Posts: 16

Join Date: February 4, 2008

Recent Posts

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