The CreatorCon Call for Content is officially open! Get started here.

knowledge Article display order

kuroiwa
Tera Contributor

When searching from the Portal and displaying knowledge articles in the search results,
What items are the knowledge articles displayed based on?
※ Update date? Number of applicable keywords?

If the same keyword is registered in the meta field or the featured article, what is the basis for determining the display order when the keyword is searched?

Thank you.

1 REPLY 1

Community Alums
Not applicable

Hi @kuroiwa ,

This article will explain you about Knowledge articles display based on :

https://community.servicenow.com/community?id=community_blog&sys_id=f91e226ddbd0dbc01dcaf3231f961910

To change the Order of the display:

You'll likely need to clone the widget and then edit the widget option schema to create a widget with the effect you're looking for.  Then you'll need to add your new widget to the page in place of the existing one (or create a new page entirely).  You'll need to do this (or configure other options if available depending on the widget) for every widget where you want the results to be sorted this way.  Here's how you could do this for the 'KB Category Page' widget shown in your screenshot.

1)  Clone the widget as shown here...

https://docs.servicenow.com/bundle/rome-servicenow-platform/page/build/service-portal/task/t_CloneAndEditAWidget.html

2)  Adjust your 'HTML Template' and 'Server Script' sections as shown in this screenshot and save...

find_real_file.png

3)  Edit the option schema for your new widget as explained in this article and as shown in the following screenshot...

https://docs.servicenow.com/bundle/rome-servicenow-platform/page/build/service-portal/concept/c_WidgetInstanceOptions.html

find_real_file.png

5)  When you configure your widget options use '-published' to sort the KB results from newest to oldest for each category selected.

 

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep