Extensions Wiki » Extensions » Numbered Headings

Numbered Headings

Last modified by Xavier Richard on 2013/02/09 12:19
cogDisplays numbered headings in the wiki
TypeXAR
Developed by

Jeremie Bousquet

LicenseGNU Lesser General Public License 2.1
Compatibility

Tested on XWiki 3.5
Not compatible with IE6 / IE7

Installable with the Extension Manager

Download v1.1

Description

Insert the following in your page to have the headings automatically numbered:

{{numberedheadings/}}

To extend this to the whole wiki, 

  • edit objects of page Macros.NumberedHeadingsStylesheetExtensionMacro
  • navigate to the XWiki.StyleSheetExtension object
  • choose "Use this extension" : "Always" instead of "On demand"
  • Then all headings will be numbered without need of adding the {{numberedheadings/}} in each page

Sample result :

numberedheadings.JPG

Notes :
This macro was greatly inspired by this thread : http://markmail.org/message/p5rw244r2f74emka
Only small bits were done to adapt it to XWiki.

Release Notes

v1.0

Initial release

v1.1

bugfix : version 1.0 was not working due to badly renamed page ...

Tags:
Created by Jeremie Bousquet on 2012/05/03 10:47

Download XWiki