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.

Table of Contents Component's edit dialog

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.

Properties Tab

Quick Search Component's design dialog

  • Restrict List Type - This option defines the type of list that the component will generate. Selecting this option restricts the content author’s ability to choose a different list type.

  • Restrict the Start Level - This option defines the highest title level that the content author can select for defining the ToC.

  • Restrict the Stop Level - This option defines the lowest title level that the content author can select for defining the ToC.

  • Include Class Names - If this option is set, only titles with the specified class names or contained within elements of the specified class names will be considered by the Table of Contents Component.

    • Tap or click the Add icon to add one or more class names.
    • Tap or click the Delete icon next to a class name to delete it.
  • Ignore Class Names - If this option is set, titles with the specified class names or contained within elements of the specified class names will be ignored by the Table of Contents Component.

    • Tap or click the Add icon to add one or more class names.
    • Tap or click the Delete icon next to a class name to delete it.

Styles Tab

The Table of Contents Component supports the AEM Style System.

Adobe Client Data Layer

The Table of Contents Component supports the Adobe Client Data Layer.

recommendation-more-help