For multipage wikis the display of the "table of content" using maketoc isn't ideal as this statement requires to be placed on every page otherwise it wouldn't be visible for other pages.
Usually this "table of content" is used for quick navigation purposes. Therefore an alternate to the maketoc statement should be provided which should allow to specify the wikipage which shall be outline. Such a statement can then be used in a module nearby the original wikipage.
I've managed to write a new plugin EXTERNALTOC which basically behaves similar to the maketoc statement. I'm providing this information here because I'm a noob so my implementation is far away from being optimal. Nevertheless an experienced tiki-wiki developer might know how to optimise my code.
The API of the plugin itself is similar to the API of the maketoc . It only provides an additional parameter allowing to pass the page.
If the optional parameter page is omitted the name of the current page is used (only if it's given).
The tikilib has been extended using copy and paste. The following three functions have been added:
Basically these function are just varieties of the mentioned functions with the difference that they don't provide the altered data. They're just delivering the array with the anchors.
To see the result of my currently sloppy implementation you can see my own site as an example:
I've just added a module to the left which only contains the following plugin content (commented out):
{*EXTERNALTOC()*}{*EXTERNALTOC*}
Therefore the outline is always generated for the current wiki page.
Bye
Kasimir
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.