Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Alex B
Removing Go To : My Public Places/My Private Places
August 20, 2010 5:56 AM
Answer

Alex B

Rank: Junior Member

Posts: 30

Join Date: August 20, 2010

Recent Posts

How can you remove the Go To : My Public Places/My Private Places drop down from Liferay 6?
Arcko Duan
RE: Removing Go To : My Public Places/My Private Places
August 20, 2010 4:52 PM
Answer

Arcko Duan

Rank: Regular Member

Posts: 202

Join Date: October 15, 2007

Recent Posts

One way is trying to not show them through css.
Alex B
RE: Removing Go To : My Public Places/My Private Places
August 21, 2010 9:58 AM
Answer

Alex B

Rank: Junior Member

Posts: 30

Join Date: August 20, 2010

Recent Posts

How exactly would I do that?
Corné Aussems
RE: Removing Go To : My Public Places/My Private Places
August 21, 2010 1:07 PM
Answer

Corné Aussems

Rank: Liferay Legend

Posts: 1284

Join Date: October 3, 2006

Recent Posts

Set these properties to false

 1
 2# Set this to true to show user public sites with no layouts.
 3my.places.show.user.public.sites.with.no.layouts=false
 4# Set this to true to show user private sites with no layouts.
 5my.places.show.user.private.sites.with.no.layouts=false
 6# Set this to true to show organization public sites with no layouts.
 7my.places.show.organization.public.sites.with.no.layouts=false
 8# Set this to true to show organization private sites with no layouts.
 9my.places.show.organization.private.sites.with.no.layouts=false
10# Set this to true to show community public sites with no layouts.
11my.places.show.community.public.sites.with.no.layouts=false
12# Set this to true to show community private sites with no layouts.
13my.places.show.community.private.sites.with.no.layouts=false


Prevent users from having public/private pages

layout.user.private.layouts.enabled=false
layout.user.public.layouts.enabled=false
 1
 2
 3    #
 4    # Set whether or not private layouts are enabled. Set whether or not private
 5    # layouts are modifiable. Set whether or not private layouts should be auto
 6    # created if a user has no private layouts. If private layouts are not
 7    # enabled, the other two properties are assumed to be false.
 8    #
 9    layout.user.private.layouts.enabled=true
10    layout.user.private.layouts.modifiable=true
11    layout.user.private.layouts.auto.create=true
12
13................
14
15    #
16    # Set whether or not public layouts are enabled. Set whether or not public
17    # layouts are modifiable. Set whether or not public layouts should be auto
18    # created if a user has no public layouts. If public layouts are not
19    # enabled, the other two properties are assumed to be false.
20    #
21    layout.user.public.layouts.enabled=true
22    layout.user.public.layouts.modifiable=true
23    layout.user.public.layouts.auto.create=true
Dhandapani S
RE: Removing Go To : My Public Places/My Private Places
August 22, 2010 11:39 PM
Answer

Dhandapani S

Rank: Regular Member

Posts: 157

Join Date: March 24, 2009

Recent Posts

Hi Alex,

You can remove that by editing the dock.vm file. This file is located in themes under template folder.

Regards

Dhandapani S
Bruno Vernay
RE: Removing Go To : My Public Places/My Private Places
September 23, 2010 6:58 AM
Answer

Bruno Vernay

Rank: Junior Member

Posts: 36

Join Date: April 6, 2010

Recent Posts

How could I enable Private/Public pages for some users and disable it for other ?

There are no permission on “page creation”. It is an all or nothing config parameter:
  • If layout.user.private.layouts.modifiable=false, even the administrator cannot modify his own private pages.
  • If it is true, any user can add/delete his public and private pages.


At first I read that you will need to dig into the code to change the behavior: Wiki: Personal Community

But finally, I found the right information: layout.user.private.layouts.power.user.required
Make personal community setting for Power User configurable

It existed since 2008, it is just a naming (taxonomy) problem to find the information:


Regards
Bruno
凌 李
RE: Removing Go To : My Public Places/My Private Places
December 9, 2012 11:28 PM
Answer

凌 李

Rank: New Member

Posts: 9

Join Date: May 9, 2012

Recent Posts

Corné Aussems:
Set these properties to false

 1
 2# Set this to true to show user public sites with no layouts.
 3my.places.show.user.public.sites.with.no.layouts=false
 4# Set this to true to show user private sites with no layouts.
 5my.places.show.user.private.sites.with.no.layouts=false
 6# Set this to true to show organization public sites with no layouts.
 7my.places.show.organization.public.sites.with.no.layouts=false
 8# Set this to true to show organization private sites with no layouts.
 9my.places.show.organization.private.sites.with.no.layouts=false
10# Set this to true to show community public sites with no layouts.
11my.places.show.community.public.sites.with.no.layouts=false
12# Set this to true to show community private sites with no layouts.
13my.places.show.community.private.sites.with.no.layouts=false


Prevent users from having public/private pages

layout.user.private.layouts.enabled=false
layout.user.public.layouts.enabled=false
 1
 2
 3    #
 4    # Set whether or not private layouts are enabled. Set whether or not private
 5    # layouts are modifiable. Set whether or not private layouts should be auto
 6    # created if a user has no private layouts. If private layouts are not
 7    # enabled, the other two properties are assumed to be false.
 8    #
 9    layout.user.private.layouts.enabled=true
10    layout.user.private.layouts.modifiable=true
11    layout.user.private.layouts.auto.create=true
12
13................
14
15    #
16    # Set whether or not public layouts are enabled. Set whether or not public
17    # layouts are modifiable. Set whether or not public layouts should be auto
18    # created if a user has no public layouts. If public layouts are not
19    # enabled, the other two properties are assumed to be false.
20    #
21    layout.user.public.layouts.enabled=true
22    layout.user.public.layouts.modifiable=true
23    layout.user.public.layouts.auto.create=true


it's to help me, thanks