Technical Details
The latest technical documentation about the Table of Contents Component can be found on GitHub.
Further details about developing Core Components can be found in the Core Components developer documentation.
Edit Dialog
The edit dialog allows the content author to define the ranges of title levels that the Table of Contents Component should render as a ToC.
List Type - This option defines if the list should be a bulleted list or a numbered list.
-
Title Start Level - This option defines the highest level of titles that the Table of Contents Component should render.
-
Title Stop Level - This option defines the lowest level of titles that the Table of Contents Component should render.
-
ID - This option allows to control the unique identifier of the component in the HTML and in the Data Layer.
- If left blank, a unique ID is automatically generated for you and can be found by inspecting the resulting page.
- If an ID is specified, it is the responsibility of the author to make sure that it is unique.
- Changing the ID can have an impact on CSS, JS and Data Layer tracking.
Design Dialog
Using the design dialog, the template author can set the default value for the title range of the Table of Contents Component as well as restrict titles included in the ToC based on class names.