Tags:
110
maketoctest
{maketoc type=box title="Stuff on this page" maxdepth=2 showhide=y nums=force}produces:
Stuff on this page |
type=box compacts the arrangement but doesn't create a box, as far as I can tell.
This is a level one headline
Branch: BRANCH-1-10
Changes since 1.801.2.25: +168 -66 lines
Diff to previous 1.801.2.25 , to branch point 1.801
This is an h2
Branch: BRANCH-1-10
Changes since 1.801.2.25: +168 -66 lines
Diff to previous 1.801.2.25 , to branch point 1.801
Another h1
Branch: BRANCH-1-10 Changes since 1.801.2.25: +168 -66 lines Diff to previous 1.801.2.25 , to branch point 1.801
Another h2
Branch: BRANCH-1-10
Changes since 1.801.2.25: +168 -66 lines
Diff to previous 1.801.2.25 , to branch point 1.801
And an h3 to test the depth
Revision 1.801.2.26 - (view) (download) (annotate) - [select for diffs]
Sun Nov 18 17:37:18 2007 UTC (4 weeks, 4 days ago) by nyloth
Branch: BRANCH-1-10
Changes since 1.801.2.25: +168 -66 lines
Diff to previous 1.801.2.25 , to branch point 1.801
[FIX][NEW] maketoc: Some fixes + new params + code cleaning
- New param "title" that allows to change the default title (tiki will try to translate the given title),
- New param "maxdepth" (maximum depth, same as the toc's maxdepth param) : values = integer, defaults to 0 (unlimited),
- New param "showhide" (add the "Show/Hide" link to hide the TOC content) : values = y|n, defaults to n,
- New param "nolinks" (add links on toc items to the page anchors) : values = y|n, defaults to n
- New param "nums" (show titles autonumbering) : values = y|n|force, defaults to y
* 'y' means 'same as page's headings autonumbering',
* 'n' means 'no title autonumbering' in TOC,
* 'force' means :
~ same as 'y' if autonumbering is used in the page,
~ 'number each toc entry as if they were all autonumbered'
- Clean the maketoc code,
- Fix the maketoc default title "Table Of Contents" that was not working,
- Leave the maketoc:box default title to "index" to preserve environment, but use the maketoc default title "Table Of Contents" with the new syntax (with type=box),
- Keep the old deprecated syntax {maketoc:box} (new syntax will be {maketoc type=box},
- replace links to tiki-index.php with $PHP_SELF
Usage examples : {maketoc}, {maketoc type=box title="My TOC" maxdepth=2}, ...