box plugin test page

Lets play russian dolls

Lets play

Lets…

L..

:-)

Lets play russian dolls

Lets play

L..

:-)

Lets…

L..

:-)

the most basic box

boxed & titled

this is also boxed
as is this

title with formatting, a link and rounded corners :-)

boxes can also contain markup…
  • a list
  • of several
  • items
<div class='box'>
  <b class='xtop'><b class='xb1'></b><b class='xb2'></b><b class='xb3'></b><b class='xb4'></b></b>
  <div class='xbox'>
    <p class='box_title'>Title text would go here</p>
    <div class='box_content'>
      <p>Including this html snippet of a box</p>
      <p>All those &lt;b&gt; tags handle the rounded corners</p>
    </div>
  </div>
  <b class='xbottom'><b class='xb4'></b><b class='xb3'></b><b class='xb2'></b><b class='xb1'></b></b>
</div>

=== headings aren't allowed in boxes ===

but tables are

and plugins …

definition
list
list
list

and a link

title

a box to match the default dokuwiki colour scheme

title

red box, 80% wide, with a title
this is a blue box

title

blue box with a title
this is a green box

title

a wide green box
and an orange box

title

orange box with a title

including a page

Sidebar Installation and Configuration Instructions

Files

Download the sidebar template (download packages) and unzip the file in your dokuwiki template directory, lib/tpl. That will create a folder lib/tpl/sidebar which will contain everything needed to use the sidebar template.

Sidebar Settings

NOTE Users of the DokuWiki version rc2006-09-28 or later can change the sidebar settings using the Admin / Configuration settings page.

The sidebar template comes with settings to enable the sidebar and place it between the two button bars and on the left hand side (as in this wiki). If you wish to use a different placement, open the file lib/tpl/sidebar/tplfn_sidebar.php in a text editor and alter the two settings, layout & orientation. In this file you can also alter the name of the page that will be used for the sidebar.

file:lib/tpl/sidebar/tplfn_sidebar.php

// sidebar configuration settings
$conf['sidebar']['enable'] = 1;
$conf['sidebar']['page'] = 'sidebar';
$conf['sidebar']['layout'] = 'inside'; 
$conf['sidebar']['orientation'] = 'left';
enable

Enable (1) or disable (0) the sidebar.
possible values: 0, 1
default value: 1

page

The name of the wiki page to be shown in the sidebar.
possible values: any legal wiki page name.
default value: sidebar

layout

Controls whether or not the sidebar appears in a column of its own (outside) or between the two button bars (inside).
possible values: inside, outside.
default value: inside

orientation

Controls the side of the window on which the sidebar is placed.
possible values: left, right.
default value: left

Dokuwiki Settings - ''template''

NOTE Users of the DokuWiki version 2006-03-xx or later can change the template setting using the Admin / Configuration settings page.

Finally, edit your dokuwiki configuration to set the template setting to sidebar.

file:conf/local.php

$conf['template'] = 'sidebar';

Create a sidebar page

To see anything other than the index in your sidebar, you will need to create a sidebar page - simply create a page called sidebar (or whatever name you set the page setting to) in the same way you would create any dokuwiki page.

Tips:
  • always use ~~NOTOC~~ on sidebar pages. The sidebar CSS will ensure no TOC is displayed in the sidebar, however the TOC will still be present in the html, this is unnecessary and could result in the page failing checks by html validators. To see an example of this, click the 'edit sidebar' button on the sidebar in this very page.
  • to simplify editing of the sidebar, place an (edit this page) link on the sidebar page.
How can you add this button ? I hadn´t found any description how to do it
At present, it has to be an internal wiki link to the sidebar page itself, e.g.
[[sidebar|edit this menu]]

That loads the sidebar page into the main edit window from where you can use the Edit Page button. The sidebar should have a proper edit button. I'll add that to the To Do list. — Christopher Smith 2005/08/08 12:27

To add an 'Edit' button, refer tip: adding an edit button

Please also consider replacing 'font-family: monospace;' with 'font-family: Courier New, monospace;' in design.css This will improve look of the Cyrillic characters (and other non-roman languages?).
Dmitry Cherniachenko 2005/10/03 12:45
  • if you use ACL, you can use it to control edit access to the sidebar pages and prevent unauthorised changes.
  • you can also use ACL to provide different sidebars for different groups of users. If a user doesn't have access to the sidebar for a given namespace the sidebar for the nearest antecedent namespace to which the user has access will be shown instead.

please can you give an example? I understand that if the admin wants a special sidebar, he must:

  • create and admin:sidebar
  • put admin:* @ALL 0 in acl.auth.php
  • put $conf['sidebar']['page'] = 'jpg:sidebar' in tplfn_sidebar.php

but it does not work. :-(

as things stand you can't have more than one sidebar for a namespace and you shouldn't specify a namespace as part of the sidebar page name ($conf['sidebar']['page']). If you would like a different sidebar page based on permissions you would need to the following modification …
if ($INFO['perm'] == AUTH_ADMIN) { $conf['sidebar']['page'] = 'admin_sidebar';}

Add that line to main.php after the @require_once line near the top and then create your admin_sidebar page in the root namespace — Christopher Smith 2005/10/06 00:23

  • if you have (like me) some contents too long for sidebar, you can hide the overflow's zone by adding in "sidebar.css" (in section "#sidebar" on top of file) this line :
    overflow:hidden;

iDo 2005/08/18 17:55 GMT+1

  • If you want to change the width of the sidebar (I wanted to make it smaller), you have to edit the following parts of sidebar.css: width in #sidebar, width in .sidebar_inside_left and .sidebar_inside_right and the repeat-y 20% and 80% in .sidebar_outside_left/_right
    Andreas K.

Nothing is shown in sidebar

I just wanted to have the index in the side bar. I first edited a page 'sidebar' but I deleted that one again…. how can I get the index into th esidebar now?

If there is no sidebar page, the index should appear in the sidebar automatically. You may also want to take a look at the the various index plugins. — Chris Smith 2008/01/29 13:04

Presentation & Appearance

The presentation styles for the sidebar are controlled by sidebar.css. If necessary this file can be edited to change the appearance of the sidebar and its contents.

FIXME I had a few presentation errors when using this template.

  1. The Table of Content autogenerated had no style information. Changing div.tocheader to div.toc__header in design.css is one fix. Removing the float:right; from the div.toctoggle element was the second fix.
  2. The edit form's Edit Summary label, input box, Minor Edit, and minor edit checkbox were out of alignment. To fix, I needed to copy the following entries from the default tpl design.css to the sidebar tpl design.css:
    1. /* edit form */
    2. div.dokuwiki div.toolbar, div.dokuwiki div#wiki__editbar
    3. div.dokuwiki div#size__ctl
    4. div.dokuwiki #size__ctl img
    5. div.dokuwiki div#wiki__editbar div.editButtons
    6. div.dokuwiki div#wiki__editbar div.summary
    7. div.dokuwiki .nowrap
I think you may have a version of the sidebar template which doesn't match your DokuWiki version. See note below. — Chris Smith 2006/10/20 11:10

IE 6 Div Overlapp

If you view a sidebar page in IE 6 (including this one), you will see that the sidebar_top div will probably overlapp your sidebar content. I was able to fix this by adding an entry to the sidebar.css:

#sidebar_content {
  padding-top: 2.2%;
  }

TOC autogenerated

If you can't view the border table. Changing #tocinside to #toc__inside in /lib/tpl/sidebar/design.css.
tamors 2006/10/12 10:14

I think you may have been using an incorrect version. If you have are using a recent DokuWiki release candidate you should be using the latest version of the sidebar template. I have updated the link at the top of the page to point to all of the packages to avoid confusion. — Chris Smith 2006/10/20 11:10

How can i get this nice submenu like on the wiki..jalakai.co.uk wiki sidebar?

lance 2006/10/19 15:28

Lance, the sidebar is a wiki page, normally called sidebar. Create a wiki page by that name and create a list of links like I have. To see how I have done it, checkout the page itself (navigate1)). — Chris Smith 2006/10/20 11:10

Thanks for a splendid menutool! Everything is work OK, but when i click the namespace in the meny it expands as it should, but it will at the same time display the whole index in the main window ? Does anybody have an idea why ?

In your wiki it does not change the content of the right window at all, only expand the menu ..

sverre 2008/02/11 15:42

Its due to a change in the way DokuWiki handles its index page. The change was made after the last release (2007-06-26), to get the functionality you need a daily snapshot after 2007-08-10 or the darcs version. Details and instructions for these are given on the development resources page at splitbrainChris Smith 2008/02/13 11:40

Language Settings

  • FIXME this functionality should be moved in release-package
  • Manual installation:
    1. in lang-directoy make a copy of the en-directory (i.e. to "de")
    2. then replace in the settings.php the code

de (German)

<?php
// sidebar configuration settings
$lang['enable'] = 'Sidebar verwenden';
$lang['page']   = 'Sidebar-Seitenname';
$lang['layout'] = 'Layout';
$lang['orientation'] = 'Orientierung';
$lang['showeditbtn'] = 'Bearbeiten-Button anzeigen (wenn Benutzer Rechte für Sidebar hat)';
$lang['editbtntxt'] = 'Sidebar bearbeiten';
 
test5.txt · Last modified: 2006/06/16 00:49 by chris
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki