KB User's Guide - Documents Tab - Creating Table of Contents (TOC) within a KB page using jQuery
A Table of Contents (TOC) at the top of your document can be useful should your document have a lot of content divided by headers. The combination of using a jQuery snippet and wrapping the headers in h3 and/or h4 containers will turn the headers into links at the top of your document. The content will then become easily accessible by clicking on a link. This document will show you how to make a TOC of your very own.
- Open your document in HTML mode.
- Type the following at the very top of the body field.
- While still in HTML mode, begin entering your headers (as seen below, circled in blue) and content beneath each header. Wrap the headers as in the example below:
This is what it should look like on your screen.
This is what it should look like on your screen. Modify the
h3,h4 below to suit your document.
You can see the table of contents in action in this document.Sample Doc: How To Remove Coffee Stains From Your Clothes