Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Lior Hadaya
Setting default permissions for all new pages
July 17, 2012 12:55 AM
Answer

Lior Hadaya

Rank: Regular Member

Posts: 138

Join Date: January 24, 2012

Recent Posts

Hello,

I wonder if there is any way to change the default permissions for all new pages that are created?
For example, is there any way to force all new pages to be private pages?

Thank you very much,
Irit.
Muzakir Khan
RE: Setting default permissions for all new pages
July 17, 2012 4:31 AM
Answer

Muzakir Khan

Rank: Regular Member

Posts: 112

Join Date: March 14, 2012

Recent Posts

In liferay by default, the pages are Public.. So you cant directly force the new pages to be private pages

Kind Regards
Muzakir Khan
Pinkesh Gandhi
RE: Setting default permissions for all new pages
July 18, 2012 5:23 AM
Answer

Pinkesh Gandhi

Rank: Regular Member

Posts: 100

Join Date: January 26, 2012

Recent Posts

Are you trying to create pages through your code by using API?
Lior Hadaya
RE: Setting default permissions for all new pages
July 18, 2012 6:58 AM
Answer

Lior Hadaya

Rank: Regular Member

Posts: 138

Join Date: January 24, 2012

Recent Posts

Right now I'm just investigating what's possible for me in Liferay.

If this is possible to change the defaults only through Liferay cofiguration it would be awesome, but I didn't find anything about it.
If there would be no other choice, I will create the pages in my code using the API, where I guess it would be easier to customize permissions...

As to your question, all options are open, what can you suggest?

Thank you.
Irit.
Pinkesh Gandhi
RE: Setting default permissions for all new pages
July 18, 2012 11:26 PM
Answer

Pinkesh Gandhi

Rank: Regular Member

Posts: 100

Join Date: January 26, 2012

Recent Posts

Hi Lior,

My only concern is, if you want to create pages through portal UI then it's quite easy. You can create those pages under 'Private Pages' tab so the new pages will be created as a private pages as well as you can set your custom permissions through portal UI.

And on other side if you want to create such kind of pages through your code using Liferay API then also you can do it.

So now choice is in your hand. Based on your requirement you can go through any of these ways.

But still if it is not cleared to you, let me know for more clarification.
Lior Hadaya
RE: Setting default permissions for all new pages
July 18, 2012 11:45 PM
Answer

Lior Hadaya

Rank: Regular Member

Posts: 138

Join Date: January 24, 2012

Recent Posts

Hi and thank you for you quick response.

Can you please clarify?
What we need, is a way to change the permissions so that every new created page is private.
Including when I click the regular "Add page" button in the toolbar.
Is there any way to do that through the portal UI?

Thanks,
Tina Agrawal
RE: Setting default permissions for all new pages
July 19, 2012 5:47 AM
Answer

Tina Agrawal

Rank: Expert

Posts: 255

Join Date: January 2, 2008

Recent Posts

Hi,

I dont think you can directly do it through UI.

You will have to customize the dockbar portlet in order t achieve this.

Tina