Skip to content

A Contao extension that adds a Table of Content to the article

License

Notifications You must be signed in to change notification settings

respinar/contao-tableofcontents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents for Contao

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.

About

A Contao extension that adds a Table of Content to the article

Resources

License

Stars

Watchers

Forks

Packages