留言板

remove static portlet from one page

thumbnail
Archi Madhu,修改在12 年前。

remove static portlet from one page

Regular Member 帖子: 237 加入日期: 08-3-25 最近的帖子
Hi All,

We are using LR6 SP1.

In properties file we have added document library portlet as static portlet on all organization private pages.

layout.static.portlets.start.column-1[organization]=20

I want to keep it for all organization private pages except for one organization.
For that organization,we don't get even remove icon to remove portlet manually from there.

Is there anyway to do it?

Regards,
Archi
Oliver Bayer,修改在12 年前。

RE: remove static portlet from one page

Liferay Master 帖子: 894 加入日期: 09-2-18 最近的帖子
Hi Archi,

I would try writing a simple portlet which uses the API to remove the portlet from the page (e.g. LayoutTpyePortletImpl.removePortletId(long userId, "20")). A quick and dirty solution would be to hack it in the database but it's not recommended in production emoticon.

HTH Oli