Fórum

Setting default permissions for all new pages

Lior Hadaya, modificado 11 Anos atrás.

Setting default permissions for all new pages

Regular Member Postagens: 138 Data de Entrada: 24/01/12 Postagens Recentes
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.
thumbnail
Muzakir Khan, modificado 11 Anos atrás.

RE: Setting default permissions for all new pages

Regular Member Postagens: 112 Data de Entrada: 15/03/12 Postagens Recentes
In liferay by default, the pages are Public.. So you cant directly force the new pages to be private pages

Kind Regards
Muzakir Khan
thumbnail
Pinkesh Gandhi, modificado 11 Anos atrás.

RE: Setting default permissions for all new pages

Junior Member Postagens: 99 Data de Entrada: 27/01/12 Postagens Recentes
Are you trying to create pages through your code by using API?
Lior Hadaya, modificado 11 Anos atrás.

RE: Setting default permissions for all new pages

Regular Member Postagens: 138 Data de Entrada: 24/01/12 Postagens Recentes
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.
thumbnail
Pinkesh Gandhi, modificado 11 Anos atrás.

RE: Setting default permissions for all new pages

Junior Member Postagens: 99 Data de Entrada: 27/01/12 Postagens Recentes
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, modificado 11 Anos atrás.

RE: Setting default permissions for all new pages

Regular Member Postagens: 138 Data de Entrada: 24/01/12 Postagens Recentes
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,
thumbnail
Tina Agrawal, modificado 11 Anos atrás.

RE: Setting default permissions for all new pages

Expert Postagens: 297 Data de Entrada: 03/01/08 Postagens Recentes
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