Recent and popular items widget is showing catalog items from other portals.

Srikanth Menava
Kilo Sage

In my organization we are using Employees Center portal as the main IT service portal. On the portal home page, I have “Recent and Popular” item widget which is OOTB. But recently I'm noticing that this widget is showing catalog items from other portals (for example CSM portal).

Within the portal page I already added the taxonomy in the related list so that it will show all the items from the IT Portal and not from CSM portal. But still, it is showing other catalog items which doesn't belong to the taxonomy. Do I need to do any changes or does it need a custom widget (specific to the portal). Any pointers will be appreciated.

10 REPLIES 10

changed it still isnt working, also copied query from sys_log.list portal=70cd9f3b734b13001fdae9c54cf6a72f. still not working.

the script which we wrote only restricts recent items from portal but not the popular items. May be your item is coming from popular items

 

 

Is there a way that can limit both the tabs(recent items and popular items too)

You can try below solution (I haven't tested it)

data.recentItems and data.popularItems are the two arrays that are finally storing the sysids of recent and popular items respectively in line 53 and 64. 
Just above them you can write your logic to remove the sysids of catalog items from the array that are not part of your portal.
 
Regards,
Sumanth 

can you elaborate please.