Create a static widget with 3 topics in Employee center

bondita1
Tera Contributor

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.

1 REPLY 1

ManiBitra
Tera Contributor

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.