Foren

Configure multiple group id in screenlet

thumbnail
Harish Kumar, geändert vor 8 Jahren.

Configure multiple group id in screenlet

Expert Beiträge: 483 Beitrittsdatum: 31.07.10 Neueste Beiträge
Hi,

How can we configure multiple group id in liferay android/iOS screenlet. For example we have below 3 sites

Site 1
Site 2
Site 3

we need to display content from all 3 sites in our screenlet. We are thinking of passing group id list as a parameter in service call but we need some way to configure group ids in screenlet. So my question is there any way available to configure multiple groupId in liferay screenlet like below?

<integer name="liferay_group_id">10182</integer>

what is best possible approach to get data in screenlet from multiple sites ?

Regards,
Harish
thumbnail
Javier Gamarra, geändert vor 8 Jahren.

RE: Configure multiple group id in screenlet

Expert Beiträge: 348 Beitrittsdatum: 12.02.15 Neueste Beiträge
If the screenlet uses the groupId to fetch the information, the best way is setting the groupId by code when you want to show several screenlets with different groupIds at the same time.

So get the screenlet by id with findViewById, cast it to the screenlet class and use the method setGroupId
thumbnail
Harish Kumar, geändert vor 8 Jahren.

RE: Configure multiple group id in screenlet

Expert Beiträge: 483 Beitrittsdatum: 31.07.10 Neueste Beiträge
Hi Javier,

thanks for your response.

when you want to show several screenlets with different groupIds at the same time.


We want to show data from multiple sites in one screenlet at the same time just like Asset Publisher portlet, where we can choose multiple scopes, so content from multiple scopes are rendered in asset publisher.

Regards,
Harish
thumbnail
Javier Gamarra, geändert vor 8 Jahren.

RE: Configure multiple group id in screenlet (Antwort)

Expert Beiträge: 348 Beitrittsdatum: 12.02.15 Neueste Beiträge
In which screenlet do you want to show information from several sites?

If you use the asset list you can show content from different groupIds by storing a asset publisher query.
thumbnail
Harish Kumar, geändert vor 8 Jahren.

RE: Configure multiple group id in screenlet

Expert Beiträge: 483 Beitrittsdatum: 31.07.10 Neueste Beiträge
Hi Javier,

I want to implement this in our custom screenlet which is extending assetlist screenlet. Thanks for the pointer, I got the idea to get data from multiple groups.

Regards,
Harish