respinar / contao-tableofcontents
Table of Contents for Contao
Installs: 29
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:contao-bundle
Requires
- php: ^8.0
- contao/core-bundle: ^4.13 || ^5.3
Requires (Dev)
- contao/manager-plugin: ^2.0
Conflicts
- contao/manager-plugin: <2.0 || >=3.0
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.