/***
USAGE:
FAQList()
Show a compact, sorted list of subpage links for the current page.
FAQList(PATH)
Show a compact, sorted list of subpage links for the given page path.
NOTES:
* the "How do I..." prefix is automatically stripped from subpages
CHANGE HISTORY:
1.0
* initial version
***/
<p>
<font size="-1">
var target = ($0 ?? $path) ? wiki.getpage($0 ?? $path) : page;
foreach(var p in list.sort(map.values(target.subpages), 'title')) {
if(string.startswith(p.title, "How do I...", true)) {
web.link(p.uri, string.substr(p.title, 11));
} else {
web.link(p.uri, p.title);
}
<br />
}
</font>
</p>
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
Copyright © 2011 MindTouch, Inc. Powered by