留言板
announcement scope problem
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
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
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
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