ScoutWatch - Scouting Unit Management Wiki


< Table directives | Documentation Index | Wiki styles >

authors (basic)

A basic table of contents (TOC) and Numbered headings is included in PmWiki 2.2.119 and can be enabled with the following in config.php:

  $PmTOC['Enable'] = 1;

The feature is based on the recipe Cookbook:AutoTOC but is somewhat simpler.

The following directives in the wiki page can control the above features:

The TOC will use anchors or identifiers of the headings from the page, if they exist, otherwise it will create a new identifier (hash) based on the structure of the page. The following markups will all create a link with the anchor PageUrl#here:

If there is no identifier or anchor with a heading, then the anchor will be in the form #toc-1.2.1 where 1.2.1 is the structural path to the section, in this example "Section 1, subsection 2, sub-subsection 1".

The following local configuration (in local/config.php) can control the default settings:

The following strings can be translated in XLPage, for example in French:

  "Contents" => "Sommaire",
  "show"     => "afficher",
  "hide"     => "masquer",

See also: Cookbook:AutoTOC. If you previously used AutoTOC you need to disable it when enabling $PmTOC.

< Table directives | Documentation Index | Wiki styles >

This page may have a more recent version on PmWiki:TableOfContents, and a talk page: PmWiki:TableOfContents-Talk.

Page last modified on September 05, 2019, at 07:39 AM