這是本文件的舊版!
原始網址:http://wiki.jalakai.co.uk/dokuwiki/doku.php/tutorials/addsidebar
These instructions assume you have a basic understanding of php, html & css and understand how to successfully create your own Dokuwiki template.
<?php ?>
tags add the following:// include functions that provide sidebar functionality @require_once('tplfn_sidebar.php'); // determine the sidebar class $sidebar_class = "sidebar_{$conf['sidebar']['layout']}_{$conf['sidebar']['orientation']}";
<head>
element and adjacent to any existing style sheet <link>
add the following line: <link rel="stylesheet" media="screen" type="text/css" href="<?php echo DOKU_TPL; ?>sidebar.css" />
<div id="sidebar"><?php tpl_sidebar_content(); ?></div>
The sidebar comes styled so that the above line can be placed between the closing </div>
of div.content
and <div class='clearer'> </div>