Knowledge Categories and Subcategories Widget (Infinite Depth)
Hello,
I noticed there was no OOTB Knowledge Categories widget that shows subcategories, so I made one. The code for client controller, server script, body HTML, and CSS is here: https://github.com/dppedersen/SNOW\_knowledge\_categories\_and\_subcategories\_widget
Clicking a 'closed folder' category name will display the subcategories. Clicking again will hide them. Clicking a name with no folder will take you to the category page. Clicking a number at any time will take you to that category page. Styling may require some configuration based on the instance, and you will need to set the widget title in the options.
I know there was an option for implementing this floating around the Share store, though it may have been removed for a time, and it only allows for up to 3 category depth. This version allows for infinite category nesting, and is a somewhat simpler and more extensible UI. I hope it helps someone out!
Duncan
https://www.servicenow.com/community/now-platform-articles/knowledge-categories-and-subcategories-widget-infinite-depth/ta-p/2327692