|Version 1 (modified by 12 years ago) (diff),|
Table of Contents Macro
The TocMacro generates a table of contents for the current page or a set of pages.
If no arguments are given, a table of contents is generated for the current page, with the top-level title stripped:
To generate a table of contents for a set of pages, simply pass them as comma separated arguments to the TOC macro. This is the macro call for the table of contents visible on the right side of this page:
[[TOC(TracGuide, TracInstall, TracUpgrade, TracIni, TracAdmin, TracBackup, TracLogging, TracPermissions, TracWiki, WikiFormatting, TracBrowser, TracRoadmap, TracChangeset, TracTickets, TracReports, TracQuery, TracTimeline, TracRss, TracNotification)]]
The following control arguments change the default behaviour of the TOC macro1:
| ||Override the default heading of "Table of Contents"|
| ||Suppress display of the heading.|
| ||Display headings of subsequent pages to a maximum depth of <n>.|
| ||Display headings inline rather than as a side-bar.|
| ||Only display the page name and title of each page, similar to TitleIndex.|
If you have any issues, create a new ticket.
[[TOC(inline, heading=Trac Table of Contents, TracGuide, TracInstall, depth=2, TracLogging, depth=99, TracPermissions)]]