Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Fais ritz
How to hide Public and Private pages?
January 9, 2013 5:38 AM
Answer

Fais ritz

Rank: Junior Member

Posts: 55

Join Date: April 11, 2011

Recent Posts

Hi,
How can i hide the public and private pages for users. How to set the users when they login and get the different default page?
Faris Abdulla
RE: How to hide Public and Private pages?
December 13, 2012 7:24 AM
Answer

Faris Abdulla

Rank: Regular Member

Posts: 183

Join Date: September 1, 2009

Recent Posts

Hi Fais,

You can use the page permission.

Is this user belongs to any community or organization. In that case you can assign a role to the orgaization and display the page.
Fais ritz
RE: How to hide Public and Private pages?
December 13, 2012 7:44 AM
Answer

Fais ritz

Rank: Junior Member

Posts: 55

Join Date: April 11, 2011

Recent Posts

Thanks for reply.
Actually i m little confused. Can you please tell me the process.
Anonymous
RE: How to hide Public and Private pages?
December 13, 2012 9:24 AM
Answer

Anonymous

are you talking about the sites dropdown in the dockbar?
Fais ritz
RE: How to hide Public and Private pages?
December 13, 2012 9:56 AM
Answer

Fais ritz

Rank: Junior Member

Posts: 55

Join Date: April 11, 2011

Recent Posts

yes. how to disable that from the dockbar?
Anonymous
RE: How to hide Public and Private pages?
December 13, 2012 10:00 AM
Answer

Anonymous

here are portal.properties that I think can point you to a solution.

https://www.liferay.com/community/wiki/-/wiki/Main/Portal+Properties+6.0.5#section-Portal+Properties+6.0.5-Default+Guest+Public+Layouts
My Places Portlet#

#
# Set the display style for the My Places navigation menu.
#
my.places.display.style=simple
#my.places.display.style=classic

#
# Set this to true to show user public sites with no layouts.
#
my.places.show.user.public.sites.with.no.layouts=true

#
# Set this to true to show user private sites with no layouts.
#
my.places.show.user.private.sites.with.no.layouts=true

#
# Set this to true to show organization public sites with no layouts.
#
my.places.show.organization.public.sites.with.no.layouts=true

#
# Set this to true to show organization private sites with no layouts.
#
my.places.show.organization.private.sites.with.no.layouts=true

#
# Set this to true to show community public sites with no layouts.
#
my.places.show.community.public.sites.with.no.layouts=true

#
# Set this to true to show community private sites with no layouts.
#
my.places.show.community.private.sites.with.no.layouts=true

#
# Set the maximum number of elements that will be shown in the My Places
# navigation menu. For example, if the maximum is set to 10, then, at most,
# 1 personal community, 10 organizations, and 10 communities will be shown.
#
my.places.max.elements=10
Abhi Ed
RE: How to hide Public and Private pages?
December 13, 2012 10:02 AM
Answer

Abhi Ed

Rank: Regular Member

Posts: 118

Join Date: June 4, 2012

Recent Posts

Fais ritz:
yes. how to disable that from the dockbar?


Those public/private pages are for default liferay community.
So, the best option will be to have your own community and then you just import your current working lar into that
community so that you don't have to recreate pages/web contents (if u have any) and then you can just set
default landing page or whatever you want.

Regards
Ed
lutz Bremen
RE: How to hide Public and Private pages?
February 4, 2013 4:01 AM
Answer

lutz Bremen

Rank: Expert

Posts: 291

Join Date: October 20, 2011

Recent Posts

Hide it with portal-ext.properties.

add

1layout.user.private.layouts.enabled=false
2layout.user.private.layouts.modifiable=false
3layout.user.private.layouts.auto.create=false
4
5layout.user.public.layouts.enabled=false
6layout.user.public.layouts.modifiable=false
7layout.user.public.layouts.auto.create=false


or if u want it to be enabled for a special role

1layout.user.public.layouts.power.user.required=true