This is a sample implementation of Dokuwiki and the sidebar template.
The sidebar is a normal dokuwiki page with a specific name. Each namespace can have its own sidebar. If no sidebar is found for the current namespace (or the user does not have read access to the sidebar page), the sidebar for the closest antecedent namespace will be used. If still no sidebar pages can be found, the index page is shown for the current namespace.
| In this example wiki there is no sidebar page for the root level, hence the wiki index is shown. The projects, tutorials & wiki namespaces all have navigate pages and will show those pages in the side bar. projects:project1:design also has a navigate page, but projects:project1 does not. |
The sidebar can be placed in four different positions, as shown below:
| | | |
| inside + left as for this wiki | inside + right | outside + left | outside + right |
The template itself is organised so that the sidebar comes after the wiki page contents. This ensures it will not interfere with external search engine catergorisation of the page or in the short summaries search engines provide.
Feel free to take a look around this wiki to get an idea of how the system works and to add any comments or requests to the Sidebar Discussion Page.
There are also instructions for adding a sidebar to older installations of dokuwiki which do not have templates - that is versions prior to 7-May-2005.
tpl_pagetitle() problemtpl_pagetitle() function (its in devel version of Dokuwiki but not release version)