掲示板

Quick question about portlet Instance ID

12年前 に Jesse Paria によって更新されました。

Quick question about portlet Instance ID

Junior Member 投稿: 69 参加年月日: 11/03/04 最新の投稿
Does a portlet's instance ID need to be unique to the portal, community or page?

I.e. embedding portlets into a theme I need to know how careful I need to be with the Instance ID. If they have to be unique within the portal, does anyone have any advice on how to make sure there are not conflicts throughout the portal?

Jesse
thumbnail
12年前 に Daniel Breitner によって更新されました。

RE: Quick question about portlet Instance ID

Regular Member 投稿: 105 参加年月日: 08/07/16 最新の投稿
Hi,

A portlet instance id is unique.
Two portlets on the same page have different instance ids.
If you remove and add a portlet it will have a different id, too.
12年前 に Jesse Paria によって更新されました。

RE: Quick question about portlet Instance ID

Junior Member 投稿: 69 参加年月日: 11/03/04 最新の投稿
So you are saying they are unique to the portal. Two separate communities can not have the same portlet with the same portlet id?
thumbnail
12年前 に Ram Manusani によって更新されました。

RE: Quick question about portlet Instance ID

Regular Member 投稿: 124 参加年月日: 11/10/27 最新の投稿
Two Communities can have the same portlet with same portlet id but instance id varies..

If you try adding a portlet, try seeing the last 4 letters after Instance_
This 4 letters always vary but portlet id should always be the same.
thumbnail
12年前 に Amos Fong によって更新されました。

RE: Quick question about portlet Instance ID

Liferay Legend 投稿: 2047 参加年月日: 08/10/07 最新の投稿
It should be unique within pages only so if you are worried about conflicting with portlets on the page, the chances will be very very slim: (26 + 26 + 10)^4
12年前 に Jesse Paria によって更新されました。

RE: Quick question about portlet Instance ID

Junior Member 投稿: 69 参加年月日: 11/03/04 最新の投稿
Thank you. That is exactly what I was trying to find out. It is unique to the page then. So only worried about conflicts on that page and not the entire portal?
thumbnail
12年前 に Amos Fong によって更新されました。

RE: Quick question about portlet Instance ID

Liferay Legend 投稿: 2047 参加年月日: 08/10/07 最新の投稿
yup, in fact, you can add two non-instanceable portlets on different pages and they will have the same portletId. There should be no different for instancable portlets because the same instanceId essentially means the same portletId.
12年前 に Jesse Paria によって更新されました。

RE: Quick question about portlet Instance ID

Junior Member 投稿: 69 参加年月日: 11/03/04 最新の投稿
Thanks that puts my mind at ease. I didn't want to have to worry about ID conflicts when embedding new protlets across the portal.