Table of Content Macro for Numbered Headings

Last modified by Michael Hamann on 2024/08/12 00:05

cogOverride the default Table of Content and displays the headings numbers when they are
Recommended
TypeJAR
CategoryMacro
Developed by

Manuel Leduc, Michael Hamann

Active Installs8
Rating
0 Votes
LicenseGNU Lesser General Public License 2.1
Compatibility

14.10+

Installable with the Extension Manager

Description

When the Numbered Headings Application is installed, the table of content acquires some new features:

  • Numbered headings are reflected in the Table of Content
  • The entries of the Table of Content are normalized
    • Trailing special characters and spaces are removed (e.g., "Hello World !" becomes "Hello World")
    • XWiki <1.7.1 The cases is normalized and each word starts with an upper-case letter, the rest of the word is lower-cased (e.g., "HellO world" becomes "Hello World")

To know more about the TOC Macro, see its documentation.

XWiki 1.8.4+ The numbered property has been deprecated, is not proposed in the macro configuration and is not taken into account anymore

Release Notes

1.10.2 and 1.8.6

1.10.1

1.10.0

1.9.3

1.9.2

1.9.1

1.9

1.8.4

1.8.3

1.8.2

1.8.1

1.8

  • The minimal XWiki dependency is now 14.10
  • Translations: Japanese, German

1.7.1

Translations: Japanese

1.7

1.6

1.5

1.4

1.3

1.2

Breaking change The parameter used to skip numbering (data-numbered-headings-skip) is now replaced by data-xwiki-rendering-protected.

1.1

1.0

Prerequisites & Installation Instructions

We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager).

You can also use the manual method which involves dropping the JAR file and all its dependencies into the WEB-INF/lib folder and restarting XWiki.

Dependencies

Dependencies for this extension (org.xwiki.contrib.numbered.content:application-numbered-content-headings-toc 1.10.2):

  • org.xwiki.platform:xwiki-platform-rendering-macro-toc 14.10
  • org.xwiki.contrib.numbered.content:application-numbered-content-headings-api 1.10.2

Get Connected