Loading...
 

 Important

Major updates are in progress. Some pages and languages may not be available.

Automatic Table of Contents

One benefit of using structures is that Tiki can automatically include a table of contents for the structure (for example, an entire book including all chapters) or a single sub-structure (for example, only the sections within a specific chapter). This beginner's guide uses the structure's table of contents on several different pages.

Use the {toc} plugin on any wiki page in a structure to automatically include the content listing for that page and all pages "deeper" in the structure. If you use it on the home page of a structure, you get the whole book (or structure). If you use it further down, just that section and its subsections below are shown.

  • The main contents page includes the table of contents for the entire book.
  • Each major section (such as Getting Started) includes a table of contents only for that specific section.

 Note

This plugin is similar to the {maketoc} that will generate a table of contents for a single wiki page.


There are parameters that you can use with the {toc} plugin to customize how Tiki generates the table of contents. Some of the most common are:

  • shownum=y: Tiki will automatically number each heading (sometimes called "legal" or "military" style headings).
  • maxdepth=#: Use a number (#) to indicate the maximum "depth" (that is, how many subheading ) to include in the table of contents. The default is 0 which will show all subheadings.

An example of the {toc} with these parameters would be:

{toc maxdepth=2 shownum=y}

 Tip

Refer to the Tiki Documentation for complete details.


As you add or change pages in the structure, Tiki will automatically update the table of contents for you! Everything will always be up-to-date.
TOC sample

Created by Rick Sapir (ricks99). Last Modification: Friday February 22, 2019 01:23:37 pm EST by Rick Sapir (ricks99).

Advertising