README
README.md
1# DokuCMS Template
2## General Description
3
4This template (templates in Dokuwiki are equivalent to skins in other wiki systems) can be of value if you use Dokuwiki as a lightweight CMS. It is best suited for a wiki with read access for everybody and restricted write access. It is not suited for a totally closed wiki. From version 0.1.1 onward it can be used for a totally open wiki.
5
6The template offers a sidebar with either an index or content from a wiki page. It is based on the "Arctic" and the default template.
7
8## License
9
10This template is published under the GNU General Public Licence (GPL) V2.
11
12## Special Thanks
13
14Thanks to Andreas Gohr and fellow programmers for creating such a wonderful tool.
15Thanks to Michael Klier for the Arctic template
16Thanks to the users of this template for hints and ideas how to make this template more usable.
17The Hamburger menu without javascript inspired by Austin Wulf (http://www.sitepoint.com/pure-css-off-screen-navigation-menu/)
18
19## Installation
20
21Unpack the file somewhere. Move the directory named `dokucms` into the `/lib/tpl` directory of your Dokuwiki installation.
22
23In the configuration plugin chose dokucms as your template.
24
25## Suggested Dokuwiki Configuration
26
27This template works best with "Hierarchical breadcrumbs" switched on and the corresponding "Number of breadcrumbs" set to "0".
28
29Turning "Use first heading for pagenames" on results in a nicer index.
30
31## Configuration
32
33Two general looks are included and may be switched by editing the style.ini.
34````
35;dokucms special variables
36;---------------------------------------------------------------------------
37__content_width__ = 80em;
38; red look
39; activate either these four lines or the four lines below
40;__text__ = "#300"
41;__yourlogo__ = flower_red.png
42;__background_alt__ = "#911"
43
44; blue look
45; activate either these four lines or the four lines above
46__text__ = "#003"
47__yourlogo__ = flower_blue.png
48__background_alt__ = "#119"
49````
50By commenting either the "red" or "blue" lines (with a semicolon!) you can switch the looks.
51
52From version 0.4.4 you can define the maximum width (`__content_width__`) of the page. All CSS distance units apply. The smallest possible value is 950 pixel (70em). The maximum value can be as high as you like. High values result in long lines on large monitors which can be hard to read.
53
54If you want to use another logo, prepare a picture with max dimension of 230 pixel width and 92 pixel height. Copy this picture into the image folder of the template. Edit the (activated) __yourlogo__ line in the style.ini accordingly.
55
56The template has six configuration options:
57
58* sidebar content can be either "file" or "index". This option controls the content of the sidebar. The default option is "index".
59 * file: Displays the content of a file in the sidebar. The file has to be named sidebar. You can define a sidebar for every namespace in your wiki. If a namespace contains no sidebar, the file from the namespace above will be used. If the file option is chosen and no sidebar file exists, the sidebar will remain empty.
60 * index: The sidebar contains the index of all pages in your wiki, alphabetically sorted. Namespaces are displayed as closed sublist that open if you open a page in the namespace. Sidebar pages are always excluded from the index.
61* clean index will remove the standard dokuwiki namespaces ('wiki' and 'playground') from the index if switched on (default: off) (for "index" sidebar content).
62* clean index of further namespaces comma separated list of namespaces to be removed from the index if "clean index" is switched on (default: empty) (for "index" sidebar content).
63* show edit button in sidebar: will show an edit button in the sidebar if you may edit the contents of the sidebar (default: on) (for "file" sidebar content)
64* show backlink button: will show a backlink button in the bottom bar (default: off)
65* show search box if logged in: will show a search box, if you are logged in (default: off)
66
67## Update
68
69Backup your DOKUWIKI_ROOT/lib/tpl/dokucms/style.ini. Unpack the file in DOKUWIKI_ROOT/lib/tpl/. This will overwrite the current template with the new version. Overwrite the delivered style.ini with your backup copy, if there were no changes to style.ini content. I will explicitly list style.ini changes in the changelog.
70Otherwise you will have to check for differences between your backup copy and the default style.ini. I recommend meld for that purpose.
71
72## Recommendation
73
74Clean the cache (DOKUWIKI_ROOT/data/cache) after installation or update of this template.
75
76## Browser compatibility
77
78This template works well with all current browsers that support HTML5 and CSS3.
79