- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2022 02:36 AM
We are trying to implement Knowledge Base on Portal. We have set up everything however articles are not visible in the 'Knowledge' tab after using search bar from main page. If we type name in the search bar, article will show up in the dropdown, but not if we will click enter. Does anyone have idea how to solve it?
Solved! Go to Solution.
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2022 02:42 AM
Looks like AI Search. What is the configuration like in your search source for Knowledge?
Best regards,
Sebastian Laursen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2022 02:42 AM
Looks like AI Search. What is the configuration like in your search source for Knowledge?
Best regards,
Sebastian Laursen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2022 05:49 AM
We are using kb_serach. I think you are asking about below script but correct me If I am wrong.
(function() {
data.kbBreadCrumbsMsg = gs.getMessage("Knowledge Base");
// Get Knowledge Bases Associated to Portal.
var kbId = $sp.getParameter('kb_id');
var kbArr = [{id: null, title: gs.getMessage("All")}];
data.selectedIndex =0;
data.breadcrumb = [];
// Get Accessible Knowledge Bases Associated to Portal.
var kbIds = $sp.getKnowledgeBases();
data.kbs = kbIds.split(',');
if(data.kbs.length > 1){
data.kbBreadCrumbsMsg = gs.getMessage("All Knowledge Bases");
}
data.kb_knowledge_page = $sp.getDisplayValue("kb_knowledge_page") || "kb_view";
var kb;
data.kbs.forEach(function(kbSysId, index) {
var gr = new GlideRecord("kb_knowledge_base");
if (gr.get(kbSysId)){
kb = gr.getDisplayValue("title");
var kbObj = {id: kbSysId, title: kb};
kbArr.push(kbObj);
}
if (kbId == kbSysId){
data.selectedIndex = index + 1;
data.kbName = kb;
}
});
data.kbArr = kbArr;
data.kbId=kbId;
})();