NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Putting a table of contents on a page

Panel
titleContents

Table of Contents
minLevel2

Add a table of contents to a new page

Click Add Page and then the link to Select a page template to start from. Select the from template and select  template. When you save the page the table of contents is displayed. The page has a table of contents in the left column. You can edit the markup macro to meet your requirements.

Add a table of contents to an existing page

Add markup like the following at At the place on the page where you want the table of contents to appear :type as much of the following as needed to open the list of available macros; select the panel macro.

Code Block
{panel:title=Contents}
{toc:minLevel=2}
{panel}

OR

Code Block
{panel:title=Contents}
{toc:maxLevel=4}
{panel}

OR

...

panel

Position the cursor in the panel macro text box, and type the following; select the Table of Contents macro.

Code Block
{toc

Click the Table of Contents macro and complete the properties to set the minimum and maximum heading levels to include in the table of contents.

Save the text to see the table of contents.

...