Skip to content

[NEW] Add Plugin AutoToc

Adrien Mbuya Maloba requested to merge adrienmaloba/tiki:tiki-toc into master

This feature allows the automatic generation of a table of contents on the left, on the right or in the page.

The parameters:

  • activity (required): determining if the table of contents should be present or not, possible values (yes, no);
  • align (optional): to position the TOC, possible values (left, page, right);
  • levels (optional): to indicate which headers should appear in the TOC, syntax: levels="2:4:5";
  • offset (optional): to determine the offset of the TOC;
  • mode (optional): to decide if the TOC should be attached to the TOC or not. Possible values (y, n);
  • title (optional): use when the value of align="page" parameter to add a title to the TOC.

Activate "Automatic Table of Contents" in "Editing and Plugins" parameters ("tiki-admin.php?page=textarea#contentadmin_textarea-2"), then add the syntax in the page.

Syntax: {autotoc activity="yes"}.

Merge request reports