Foren

announcement scope problem

sahar zangenehpour, geändert vor 11 Jahren.

announcement scope problem

New Member Beiträge: 10 Beitrittsdatum: 31.12.12 Neueste Beiträge
hi everybody,
I have a problem with announcement portlets,
I have some users with different sites,
at any sites, in their pages, I put an annoucement portlet,
my problem is, when I add an entry in announcement portlet in a site, the anouncement entry will be displayed in all the sites of the all the users which has this site.
but I just want to show the announcement entry for that specific site for users that have it not for all the sites of users that have it.

thanks a lot
Ketan Patel, geändert vor 11 Jahren.

RE: announcement scope problem

Junior Member Beiträge: 72 Beitrittsdatum: 04.05.12 Neueste Beiträge
Hi sahar,

You can use groupId to differentiate users as per site.

you can get groupId using themeDisplay.getScopeGroupId(). this method returns the groupId.

Thanks,
Ketan Patel
sahar zangenehpour, geändert vor 11 Jahren.

RE: announcement scope problem

New Member Beiträge: 10 Beitrittsdatum: 31.12.12 Neueste Beiträge
thanks alot,
but when I choose a group scope for defining the scope of the adding entry, it will show the message in all the sites of the users with that group, but I want just in a specific sites,

and I didn't get your solution completely, would you explain more.