Table of contents
Links to the headings on this page, kept up to date from the page.
Use this element#
Existing Table of contents elements list headings from the page. Choose level 2, levels 2 and 3, or levels 2 through 4, and use the fill action to refresh the list.
This element is currently not offered for new insertion. Use meaningful headings and unique destinations. A table of contents follows the page’s structure; it should not be used to conceal a confusing heading hierarchy.
Availability#
Not offered for adding in the default 0.9.13 catalog. Existing instances keep their settings and public behavior. A site may explicitly change the catalog through the supported filter.
Content controls#
These are the controls registered for this element. A control that depends on another setting or the surrounding layout appears only when it applies.
Headings to list#
| Choice | Stored value |
|---|---|
| Level 2 only | h2 |
| Levels 2 and 3 | h2,h3 |
| Levels 2 to 4 | h2,h3,h4 |
Name for screen readers#
Input type: text. Enter the desired value, then check the page result.
Fill it in from this page's headings#
Run this explicit action to update the element from its current context. Review the resulting content before saving.
Save and check#
- Change one setting and inspect the affected element.
- Use Undo and Redo to check the edit is reversible.
- Save a draft, reopen it, and confirm the content and choices remain.
- Inspect the page at desktop and phone widths.
- Publish only when the result is ready. For interactive elements, check the visitor view because editing mode can suppress interaction.
How it is stored#
The block comes from blocks/500-toc.html. Its editable content is HTML in the page or owning template. Native settings update words, attributes, classes, or supported style properties. Generated interface controls are not saved into that HTML.
The settings registry matches .cb-toc in assets/element-settings.js. Public behavior, when needed, is implemented by the native element runtime in assets/elements.js or assets/blocks.js.