Forums

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

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Yves LeGrand
Difference between Private Pages and Public Pages
February 13, 2012 1:35 AM
Answer

Yves LeGrand

Rank: Regular Member

Posts: 158

Join Date: November 18, 2009

Recent Posts

Hi at all.

Very often I am facing the question, what are the Public Pages and what are the Private Pages?
In more detail: What is the exactly technical difference between the Public Pages and the Private Pages?

I know I can set the permissions of a page such the page is not visible for the guest user. As far as I understand, this Public Page is now the same as a Private Page, isn't it?

But maybe I forget important aspects about these type of pages. Are there some more things which differ between public and private pages?

Thanks a lot.

Best wishes,
Yves
Jignesh Vachhani
RE: Difference between Private Pages and Public Pages
February 13, 2012 2:11 AM
Answer

Jignesh Vachhani

Rank: Liferay Master

Posts: 785

Join Date: March 10, 2008

Recent Posts

I am seeing the main difference,
Public pages can be accessible by everyone i mean guest users (According to permissions) but no any public user can view private page user must have to login to access this page.
Tanaji Londhe
RE: Difference between Private Pages and Public Pages
June 20, 2012 11:17 PM
Answer

Tanaji Londhe

Rank: Regular Member

Posts: 196

Join Date: April 25, 2012

Recent Posts

Hey your saying that is right, but what about the user which is related to the particular Organization?
Hitoshi Ozawa
RE: Difference between Private Pages and Public Pages
June 23, 2012 8:22 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

I know I can set the permissions of a page such the page is not visible for the guest user. As far as I understand, this Public Page is now the same as a Private Page, isn't it?


No. There is a flag in layout table to distinguish between public and private pages. That is, pages can be distinguished by their groupid, parentLayoutid, and by whether they are private or public.

Look as LayoutLocalServiceUtil.getLayouts(long groupId, boolean privateLayout, long parentLayoutId)
Sachin Mane
RE: Difference between Private Pages and Public Pages
June 24, 2012 11:28 PM
Answer

Sachin Mane

Rank: Junior Member

Posts: 76

Join Date: April 9, 2012

Recent Posts

Every entity in liferay has a set of Public and Private pages-

1. User
a. Public page - Visible to everyone
b. Private page - Only the owner user can see his private page.
2. Community
a. Public page - Visible to members + non-members
b. Private page - Visible to only members
3. Organization
a. Public page - Visible to members + non-members
b. Private page - Visible to only members.
4. Portal instance
a. Public page - All users connected to this portal instance can see
b. Private pages - All users logged in into this portal instance can see.

In liferay 6.1, the concept of community is removed and all we create a Site. A site has a set of public and private pages and there can be a site for each of the above entity.
Oliver Bildesheim
RE: Difference between Private Pages and Public Pages
September 20, 2012 11:14 AM
Answer

Oliver Bildesheim

Rank: New Member

Posts: 9

Join Date: April 28, 2009

Recent Posts

Hello all

Is it correct, that i can only use page permissions to control access to public page, but access to private pages is granted to all registered and logged on users?

Regards,
Oliver
Mika Koivisto
RE: Difference between Private Pages and Public Pages
September 20, 2012 11:44 AM
Answer

Mika Koivisto

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1512

Join Date: August 7, 2006

Recent Posts

Private pages are only visible to members of the group regardless of any other permissions where as public pages are by default visible to everyone though you can remove permissions so that they are only visible to members. Private pages also requires the user to be logged in because of the requirement that they are only shown to members.
Oliver Bildesheim
RE: Difference between Private Pages and Public Pages
September 20, 2012 11:53 AM
Answer

Oliver Bildesheim

Rank: New Member

Posts: 9

Join Date: April 28, 2009

Recent Posts

Hi Mika

Mika Koivisto:
Private pages are only visible to members of the group regardless of any other permissions


"regardless of any other permissions" - so the "page permission" configuration is only relevant (out-of-the-box) for public pages? Thanks!

Regards,
Oliver
Mika Koivisto
RE: Difference between Private Pages and Public Pages
September 20, 2012 2:32 PM
Answer

Mika Koivisto

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1512

Join Date: August 7, 2006

Recent Posts

Well the permissions do affect private pages too but you have to be a member before you can see them so you can still hide some private pages from members but not administrators.
Oliver Bildesheim
RE: Difference between Private Pages and Public Pages
September 21, 2012 2:41 AM
Answer

Oliver Bildesheim

Rank: New Member

Posts: 2

Join Date: November 28, 2011

Recent Posts

When i remove the view permission from the site member role for a page, the page still is available as well in the (private) navigation as using its user-friendly URL. How could i hide a private page for a specific site role?