掲示板

OOTB portlets instanceable

thumbnail
12年前 に Priyanka Dhingra によって更新されました。

OOTB portlets instanceable

Liferay Master 投稿: 501 参加年月日: 11/12/20 最新の投稿
Hi,

I know the we can make out out of the box portlets instanceable by manually editing ROOT/WEB-INF/liferay-portlet.xml
but my problem is that when we'll upgrade to some other version it would be a problem and since there are licensed version of liferay also we cannot modify the aforesaid xml file just like that.

So, is there any other way I can make any OOTB portlet instanceable or non-instanceable.(like hooks or something else)

Any help would really be apprecaited.

Thanks in advance
Priyanka
thumbnail
12年前 に Priyanka Dhingra によって更新されました。

RE: OOTB portlets instanceable

Liferay Master 投稿: 501 参加年月日: 11/12/20 最新の投稿
If what I am thinking and asking is not apt and is not the right direction...Do comment
thumbnail
12年前 に Sandip Patel によって更新されました。

RE: OOTB portlets instanceable

Regular Member 投稿: 205 参加年月日: 11/01/05 最新の投稿
Hi Priyanka Dhingra,

For this you have to override liferay-portlet.xml to liferay-portlet-ext.xml by using ext, and change portlet <instanceable> tag.
thumbnail
12年前 に David H Nebinger によって更新されました。

RE: OOTB portlets instanceable

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
Priyanka Dhingra:
If what I am thinking and asking is not apt and is not the right direction...Do comment


The real question is why would you want to do this?

Instantiable controls whether you can have only one instance of a portlet on a given page or whether multiple instances per page are allowed.

For example, web content can be on a page multiple times, and that makes sense. Each one can contain different content, so they are each separate instances.

Mail on the other hand only makes sense to have a single instance on a page (yes, users can have multiple mail accounts, but all of the accounts listed in separate mail portlets on a single page would be pretty confusing).

For all of the Liferay portlets, I think they've done a pretty good job determining which ones can be multiples and which ones should allow only a single instance.

So it gets back to the question, why would you want to do this?
thumbnail
12年前 に Priyanka Dhingra によって更新されました。

RE: OOTB portlets instanceable

Liferay Master 投稿: 501 参加年月日: 11/12/20 最新の投稿
Hi David,
This was a question asked to me. I knew the method i mentioned in post but was trying to see if any better alternative available.. I am a Liferay beginner so there is a possibility that the solution I am trying may not be always efficient.

Thanks
Priyanka
thumbnail
12年前 に Riccardo Ferrari によって更新されました。

RE: OOTB portlets instanceable

Regular Member 投稿: 139 参加年月日: 10/11/13 最新の投稿
Hi,
I think that the "instaceable" behavior of a portlet is tightly coupled with its business logic. Are you sure you want to change this setting? Are you referring "instanceable" as the ability to add a portlet instance to a portal page?
thumbnail
12年前 に Hitoshi Ozawa によって更新されました。

RE: OOTB portlets instanceable

Liferay Legend 投稿: 7942 参加年月日: 10/03/24 最新の投稿
You're talking about modifying just the settings and not the source code.