nickharambee
Hi,
I have successfully installed DokuWiki for the first time, with the starter template. I am trying to work out how to add navigation, i.e. a Table of Contents to the sidebar. In the screenshot on the main starter template page it shows navigation in the sidebar, but having installed the template, and created a few dummy pages, nothing is showing in the sidebar. I can add a page to the sidebar using the configuration settings for the starter theme, but no navigation.
Could someone let me know how I would go about doing this?
Thanks,
Nick
ach
Just create a page called "sidebar".
jr
Hi,
I have pretty much the same problem and I am not satisfied with ach's answer ;)
What I like to achieve is a dynamic sidbar in the starter template which lists the
navigation "context" of the current page.
Context could be:
a) all siblings in the namespace of the actual page
b) better: siblings + subdirectories down to a specific level
c) best: manually define what the context is
I thought a) and b) could be done using the nspages plugin, which just got
an update today adding the -r option to recurse into subdirectories. Unfortunately
this doesn't work, because the namespace of the included "sidebar" page
is used (which is always root) instead of the namespace of the including
page.
Anyway: even with this limitation my favorite option c) could easily be done, if the
starter template won't just lookup statically for a page id "sidebar" (or whatever is
configured), but doing a first match search going up all parents of the current
namespace.
Then I could add a "sidebar" page on each level I like to have as the navigation
scope, using the specific namespace as starting point in the <nspages> tag.
I think adding this feature should be easy (at line 110 in main.php) by adding the
corresponding "sidemap" parent lookup code - unfortunately I am no PHP-
and especially no DokuWiki API expert.
Anyone able & willing to jump in here? ;)
Thanks,
Jörn
erich
Are you sure that the starter template is the best fit for you? My understanding of that template is that it is supposed to be a base for developers to 'start' with hence the name starter template. Perhaps it would be more useful for you if you looked into some of the more developed/user friendly templates. Based on what you are describing perhaps some of the work of Andreas Haeter would work for you. He has a convenient sidebar that can be customized pretty easily. Take a look through the templates.