TDX Knowledge: Make Table of Contents or Other In-Page Links
You can quickly create a table of contents (or other in-page links) by associating anchors to selected headings (or text) and then linking to those anchors.
Lengthy articles that contain a table of contents (TOC) with links are easier to scan and easier to navigate using adaptive technology. Unless the article is short, if it has two or more headings, include a TOC in the form of a bulleted list.
Most of the time you will not need TOC links to subheadings below H2 unless you have a lengthy and complex article. Even then, it would be a judgment call as to whether or not it made sense.
When you set an in-page link that is not a heading, be sure to add "(on this page)" after the link.
- This is an accessibility standard.
In this article:
Before you can create an in-page link, you have to create an anchor.
Making an anchor
- Before you create any anchors, Remove the Extra HTML Formatting from an Article. Otherwise, you will have to reset them.
Assuming you are edit mode:
- Select the text you want to create an anchor for.
- Click the Anchor icon.
- Enter a name for the anchor.
- Click OK.
Linking to an anchor
- Select the text that you want to link to the anchor.
- Select the Link icon.
- Displayed Text is filled in with your selection; you can change it and the text in the Body will update.
- Change the Link Type to Link to anchor in the text.
- Select an Anchor by Anchor Name.
- Click OK.
- Type (on this page) next to the link you just created.
If you need to remove an anchor, you can just backspace.