掲示板

Liferay 7 - Allow user to add portlets at his private page

7年前 に alex ehrenhöfer によって更新されました。

Liferay 7 - Allow user to add portlets at his private page

New Member 投稿: 7 参加年月日: 15/08/04 最新の投稿
Hello there!

I'm trying to allow the user to place portlets at his private page.
Are there any possibilities to do this ?
The user should only be allowed to place applications, and not content.

Thank you in advance!
thumbnail
7年前 に Andrew Jardine によって更新されました。

RE: Liferay 7 - Allow user to add portlets at his private page (回答)

Liferay Legend 投稿: 2416 参加年月日: 10/12/22 最新の投稿
You should be able to control all that stuff via the Roles Permissions. Try this...

+ Go to Control Panel > Users > Roles
+ Find the "User" role (or whatever role you are using) and choose "Define Permissions" under the right menu (three dots)

Assuming you want to control pages ---

+ Expand the Site Administration > Navigation and choose Site Pages

.. here you can choose the things you want to turn on and off, and in your case, you click the cog/gear that says Change and you set the scope of the permission to "User Personal Site"

... that should get you what you need.
7年前 に alex ehrenhöfer によって更新されました。

RE: Liferay 7 - Allow user to add portlets at his private page

New Member 投稿: 7 参加年月日: 15/08/04 最新の投稿
Hello,
Thank you very much for your answer !
Thanks to your answer, i could set the permssions for a user to add applications! Great!
But now, he can alsow place content, and I don't want to allow this.
So, do you know, how to remove that permission ?
thumbnail
7年前 に Andrew Jardine によって更新されました。

RE: Liferay 7 - Allow user to add portlets at his private page

Liferay Legend 投稿: 2416 参加年月日: 10/12/22 最新の投稿
Hmmm good question. Usually that is controlled via the portlet resource permissions... Restricting what role can 'add to page'. You can't do that generically though because you need to add others I guess ... Bit if you go into the same define permissions area and then expand the 'site administration' and then 'applications' you can set the permissions on the individual plugins. For example, you could remove the 'add to page' for web content display. It can be tedious because you need to do them individually, but it should be what you need.