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
Viewing 2 of 2 comments: view all
nothing change, please write more code examples
Posted 14:57, 29 May 2009
@ricaspbr what kind of code examples would you like to see? Also, check out my sandbox for some advanced proof-of-concept stuff: http://developer.mindtouch.com/User:SteveB/Sandbox . These will become samples when I have the time to clean them up a bit, but in the meantime, they offer a glimpse of various things that are possible. And, don't forget to post questions and suggestions on the forums. Lots of great, smart, and helpful people there. Thanks!
Posted 09:56, 30 May 2009
Viewing 2 of 2 comments: view all
You must login to post a comment.