Notifications

125 views

Description

In a base system, the order in which the knowledge base articles appear on the Service Portal is based on the sys_id of the articles.

Resolution

  1. Clone the KB Category Page widget (Service Portal > Widgets)
  2. Update the Body HTML template.
  3. To sort the articles by their publishing date, add the "orderBy : '-published'" parameter in line 11 of your cloned KB Category Page widget:
    • <div role="listitem" ng-repeat="kb_article in data.items| orderBy : '-published'" class="sp-kb-topic-article m-b-lg">
    • Note: Adding + or - prefix on orderBy parameter will order by + (ascending) or -(desc);
  4. Save the change.
  5. Open the Service Portal page designer:
    • /$spd.do#/sp/editor/kb_category/b6f5c370d7000200a9ad1e173e24d498
  6. Remove the default "KB Category Page" widget from the page.
  7. Drag and drop the cloned  "KB Category Page" widget to the page.

Article Information

Last Updated:2019-12-20 05:59:34
Published:2019-12-20