PI: tocpage
PI: tocpagefinal
The purpose is to set up a TOC for one page on that page. The two PI's works exactly the same, but they are invoked at different phases in a pagebuild. tocpagefinal is invoked after all pages have been built and all collections and indextables have been effectuated, while tocpage is invoked during normal pagebuild.
<?_wxt tocpage cols="1" hi="3" lo="1" left="" right="" divider="" header="h" ?>
The parameters are:
cols (optional) | Number of columns. Default is "1". |
hi (optional) | Highest toc-level included. Default is "1". |
lo (optional) | Lowest toc-level included. Default is "3". |
left (optional) | A string that will appear left of all entries. Default is the empty string. |
right (optional) | A string that will appear right of all entries. Default is the empty string. |
divider (optional) | A string that will appear between all entries. Default is the empty string. |
header (optional) | A string that identifies a tag that describes levels in the page. Default is h, which will identify tags: h1, h2, h3 , h4 etc. |
A typical tocpage PI may look like:
<?_wxt tocpage cols="0" lo="2" hi="2" divider=" ][ "?>
The involved style-classes are of the form: tocpage-n. n is a number greater or equal to 0, and indicates the level. 0 is used when parameter cols is 0. See Styling