Skip to content

fwilleke80/plg_content_tableofcontents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of contents plugin

What is it?

This content plugin creates a Table of Contents in an article.

Usage

To include a Table of Contents, just add this to your article:

{toc}

There are also some optional parameters:

{toc minlevel=2 maxlevel=4 chapternumbers=true prefix=§}
  • minlevel Set the minimum heading level to include in the Table of Contents.

  • maxlevel Set the maximum heading level to include.

  • chapternumbers Set this to true to include chapter numbers in the headings and Table of Contents.

  • prefix If chapternumbers=true, this lets you define an additional string that will be inserted before a chapter number.

Excluding headings

If you want to exclude a heading from the TOC, you can use the class no-toc, like so:

<h1 class="no-toc">A heading that won't appear in the TOC</h1>

License

Published under GNU Public License 2 (see LICENSE.txt).

About

Joomla! 5 plugin to generate a Table of Contents in articles

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages