1 of 1 found this page helpful

Listing immediate sub-pages to the current page

    Table of contents
    No headers

    It's a common task that a page contains a quick access list to its sub-pages, but only the immediate ones (i.e. not sub-sub-pages).  To achieve this, use the wiki.tree function, pass it the path of the current page, and give it a depth limit of 1.

    {{ wiki.tree(page.path, 1) }}

    This will create an alphabetically sorted, bulleted list of sub-pages.  Like this:

    Was this page helpful?
    Tag page
    Viewing 1 of 1 comments: view all
    Cool thx
    Posted 04:08, 10 Aug 2009
    Viewing 1 of 1 comments: view all
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by