respinar/contao-tableofcontents

Table of Contents for Contao

0.4.0 2024-02-20 16:55 UTC

This package is auto-updated.

Last update: 2024-10-23 21:04:03 UTC


README

This Contao Extenstion simply adds a table of contents to the article using JavaScript. It is based on the class name for example "layout_full". It creates a table by searching for h2 and h3 headings.

This extenstion based on https://techindetail.com/table-of-contents-javascript/

Table of contents

Table of contents (TOC) is the list of all the headings in a blog post or an article with a link to each of these headings.

TOC is used to navigate faster to a particular heading in a long content webpage, by clicking a link of a toc it directly scrolls to that particular section of the page.

How to use

To use this plugin, just select and add it in the content section.

The settings include the title, the desired class to search for headings, as well as the headings that should be added to the content list.