MindTouch Developer Center > Deki > FAQ > Page Management > How do I...Display a table of contents?

How do I...Display a table of contents?

Table of contents
No headers

Deki Wiki provides support for automatically creating a table of contents for a given  page.  To display a hierarchical list of all sections on the current page, edit the page and enter:

{{ page.toc }}

Example:

./Image1.JPGEditor View ./Image2.JPGAfter Save

You can also display a hierarchical list of all pages under the current page:

{{ wiki.tree(page.path, <depth>) }}

Where <depth> is an optional integer that specifies how many levels of the heirarchy to display;  use a depth of 1 to only display the children of the current page.  Example:

./Image3.JPGEditor View ./Image4.JPGAfter Save

Refer here for more information on using built-in Deki Wiki functions.
Tag page
You must login to post a comment.
Powered by MindTouch Deki v.8.08.2