I'm trying to create a sidebar using the default dokuwiki template that contains (among other things) the table of contents for the page being displayed.
Having a file
pages/sidebar.txt will cause that page to be loaded in a sidebar on the left. This much is easy.
plugin:toctweak can be used to stop the toc from being rendered within the main page display area.
Inserting
<?php tpl_toc($return = false) ?>[/m] into the [m]main.php file in the position shown below will cause a toc to display in the sidebar.
<?php tpl_flush() ?>
<?php tpl_includeFile('sidebarheader.html') ?>
<?php tpl_include_page($conf['sidebar'], true, true) ?>
<?php tpl_toc($return = false) ?>
<?php tpl_includeFile('sidebarfooter.html') ?>
[/color]
However, this new toc lacks any functionality. It displays correctly (including colouring suggestive of internal hyperlinks), but the links cannot be clicked on.
What do I need to make this a thing that works?