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

Creating a Table of Contents for a KBA with multiple sections

Matthew Besecke
Tera Contributor

I have created a Know Base Article Template with Multiple Sections where users enter information. I want to create a Table of contents that a user can click on and it takes them to that section. I tried to use the base ServiceNow integrated TOC however it will not recognize something in a separate text box.

I tried to add some basic HTML to the dictionary definitions (Basic href links) but that did not work all it does is scroll to the top of the page not the actual section. Please see screenshots

2 REPLIES 2

Lucas Vieites
Tera Guru

  Hi there,

  unfortunately, there is no out-of-box way to generate a table of contents from different sections the way you have set up (with different text fields).

  I submitted an Idea on our portal: "Table of contents" widget for the KB Portal. You can go and vote for it to increase the possibility of having this in a future release.

  In the meantime, you might want to have a look at this proof of concept that I published a while ago. It should be able to do what you want, but it's very basic. You can find it on GitHub: kb_table_of_content-sp_widget.xml 

Kind regards,
Lucas Vieites
P.S. If my reply helped you, please mark it as helpful or correct so other community members can benefit from this information.

Leri Andrews
Tera Guru

Not sure why I can do this and you cannot - there's nothing fancy with my html.  The anchor tags work in articles with template sections as well as within sections.