|
Cookbook /
TableOfContentsPortionSummary: Inserts a portion of external table of contents into the page
Version: 2006-12-05
Prerequisites: pmwiki 2.1
Status: Alpha
Maintainer: NeARAZ
DescriptionIf you have a pseudo-hierarchical table of contents for your wiki, this helps inserting the relevant portion of TOC into the page. For any page, it inserts the contents that are "below" the current page. Usage
ExampleSuppose the pageMyTocPage contains this:* [[User Manual]] ** [[Basics]] *** [[Learning The Interface]] *** [[Doing Stuff]] ** [[Advanced]] *** [[Doing Even More Stuff]] ** [[FAQ]]Then (:tocportion MyTocPage:) inserted into Basics page would yield the result of * [[Learning The Interface]] * [[Doing Stuff]]The same markup inserted into User Manual page would result in * [[Basics]] ** [[Learning The Interface]] ** [[Doing Stuff]] * [[Advanced]] ** [[Doing Even More Stuff]] * [[FAQ]] Release Notes
Todo and gotchasRight now it only supports bulleted lists for the TOC, with one item followed by the simplest link markup Should be expanded to numbered lists and more valid link markup types.
CommentsAlexander Heintz - 2008-10-28 added these lines starting at line 55 in order to handle slightly more complex link markup:
Contributors |