Create a static widget with 3 topics in Employee center
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2024 07:07 AM
Hello all,
I want to create a static widget in the Employee Center to show only three parent topics such as Hardware, Software, and IT for IT.
I cloned the 'Popular Topics' widget, but I'm unsure which API to use to achieve this.
Can someone please help me achieve this?
I guess the script below uses the 'Popular Topics' widget to show the topics:
var session = gs.getSession();
var popularTopicsDataKey = 'sn_ex_sp_popular_topics_data' + session.getLanguage() + gs.getUserID();
var popularTopicsData = JSON.parse(session.getClientData(popularTopicsDataKey));
if (popularTopicsData === null || popularTopicsData.length != limit) {
data.popularTopics = new PopularTopicsUtil().getPopularTopics(taxonomy, limit, false);
session.putClientData(popularTopicsDataKey, JSON.stringify(data.popularTopics));
} else {
data.popularTopics = popularTopicsData;
}
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2025 08:56 AM
Hi @bondita1,
I am also looking for the same, I have updated the popularity in topic metrics table but no use.
Let me know if you find any solution.