- Page restrictions apply
- Attachments:11
- Added by david, last edited by Michael Aynsley on Aug 27, 2009 (view change)
|
This macro generates a Table of Contents for the current page based on its headings. DetailsThis macro generates a Table of Contents for the current page based on its headings. Versions of this plugin prior to 2.3 require the appropriate Utilities Plugin to be installed into WEB-INF/lib. Overview
Bugs & Feature RequestsBug reports and feature requests are available in JIRA. To view the macro's documentation, click on its name below. {toc}Generate a table of contents based on what headings are present in the current page. more info... {toc-zone}Generates a table of contents based on what headings are present within its body. more info... The examples are based on a page with the following basic content: h1. Level 1 h2. Level 1.1 h3. Level 1.1.1 h2. Level 1.2 h3. Level 1.2.1 h1. Level 2 h2. Level 2.1 Basic Table of ContentsThis will list all headings of level 1 or 2 in outline style. {toc:outline=true|style=none|maxLevel=2}
Filtered Table of ContentsThis will list all headings that end with '.1' or '.2' as a flat list with each item separated by ' - '. See Sun's Regex documentation for details on how to use this. {toc:type=flat|separator=" - "|filter=.*\.[1//2]}
The TOC ZoneBelow is an example of the {toc-zone} macro in action. This macro will only list headings which occur in inside the macro body - that is, 'Level 1.1' through 'Level 1.2.1'. You can specify if the TOC should appear at the top, bottom or in both locations. Otherwise, it has the same options as the regular {toc} macro. h1. Level 1
{toc-zone:separator=pipe|location=top}
h2. Level 1.1
h3. Level 1.1.1
h2. Level 1.2
h3. Level 1.2.1
{toc-zone}
h1. Level 2
h2. Level 2.1
Note: By downloading the product below, you agree to CustomWare's product license agreement. For information on installing the plugins once you've downloaded them, see these instructions. Confluence 3.0.1+
Confluence 2.3+
Confluence 1.4/2.0/2.1/2.2This is the version to install if you are using Confluence 1.4, 2.0, 2.1 or 2.2.
Confluence 1.3This is the version to install if you are using Confluence 1.3.
|
|
Connect JIRA and SharePoint |
Atlassian Professional Services |
Atlassian Training |

Discussions