The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Add a new sort by option in Topic Content Widget - Employee Center

Alex Sastre
Tera Guru

Hello,

 

I need to add a new option in the select box of "Sort by" in the Topic Content Widget. The idea is that it must sort the records depending on the value of the order field (ascending). I have the option added but I dont know how can be the functionality in the script:

 

AlexSastreBra_0-1689594198113.png

Thank you.

 

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi @Alex Sastre ,

  1. Control + right-click the sort options at the top of the results list.
  2. Click Instance Options.
  3. Configure the desired settings for the sort widget.
     
    Instance option Description
    Bootstrap color The color of the search widget.
    CSS Custom configurations that determine the look and feel of the elements in the widget. For more information, see Service Portal SCSS Primer.
    Hide Relevancy Removes the relevancy sort option.
    Table The table that contains the fields used to sort 
    Sort Fields The fields used for sorting the list.
    Sort Field Labels The labels for the fields that appear in the sort options. The default is Views:desc,Newest:desc,Alphabetical.

    The sort order for the sort field labels is ascending. To use a descending order, denote :desc.

  4. Click Save.

View solution in original post

5 REPLIES 5

Community Alums
Not applicable

Hi @Alex Sastre ,

  1. Control + right-click the sort options at the top of the results list.
  2. Click Instance Options.
  3. Configure the desired settings for the sort widget.
     
    Instance option Description
    Bootstrap color The color of the search widget.
    CSS Custom configurations that determine the look and feel of the elements in the widget. For more information, see Service Portal SCSS Primer.
    Hide Relevancy Removes the relevancy sort option.
    Table The table that contains the fields used to sort 
    Sort Fields The fields used for sorting the list.
    Sort Field Labels The labels for the fields that appear in the sort options. The default is Views:desc,Newest:desc,Alphabetical.

    The sort order for the sort field labels is ascending. To use a descending order, denote :desc.

  4. Click Save.

Hi Sandeep,

this solution only works for Service Portal widget "Knowledge Result Sort", but NOT for "Topic Content" Widget in ESC.

Your solution is copied from Configure sort widget instance options (servicenow.com)

 

Does anyone has a working solution for the employee center?

@Alex Sastre you?

 

I have the same requirement, in my case sort by updated.

Thanks for help and kind regards,

Dominique

svani
Tera Contributor

Hi @Dominique6 

Did you find the solution for the sorting option. Please let me know if you have donei have the same requirement. 

 

Thanks in advance

Hi @Dominique6 @svani 

We are also experiencing this issue. After we have upgraded our version to Xanadu, the sort order option is not available anymore. How can we enable it again? here is what it looks like now. The red box is where the sort order option is supposed to be placed.

tidert_24_0-1739328763092.png