respinar/contao-tableofcontents

Table of Contents for Contao

0.3.0 2023-12-23 05:32 UTC

This package is auto-updated.

Last update: 2024-04-25 06:19:53 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.