Skip to content


Deki wiki template for listing pages

Part of the housecleaning I am doing in the Thunderbird area of the Mozilla Developer Center requires searching out and linking up orphan pages. Sheppy showed me a trick for listing all the sub-pages beneath a specified page:

{{wiki.tree("path to root")}}

So, for example, to list all the pages under the “en/Extensions/Thunderbird” page, I embed the following template in any page:

{{wiki.tree("en/Extensions/Thunderbird")}}

When the page is published, it shows a list of hyperlinked page titles.

You could use this template to create a table of contents of sub-pages. However, the content structure on MDC seems to be generally fairly flat, so it would only be useful if you had  deliberately structured pages into a meaningful hierarchy. As a tool for finding buried treasure, though, it works great!

Posted in MDC.

Tagged with .


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.