This is an old revision of the document!
Needed to allow upper/lowercase pagenames:
Commented out one line in the /var/lib/dokuwiki/inc/pageutils.php about line 109:
$id = utf8_strtolower($id);
But may have side effects with filename matching when other bits of code assume lowercase.
Edited /etc/dokuwiki/mime.conf and added:
cpp text/plain h text/plain
(tried creating mime.local.conf, but didn't work, the contents don't seem to be automatically included, so edited the primary file instead)
Edited /etc/dokuwiki/mime.conf and added:
JPG image/jpeg
(doesn't work 100%, eg doesn't show image preview in media manager)
Edited /usr/share/dokuwiki/HTTPClient.php and /usr/share/dokuwiki/pageutils.php and commented out two strtolower() function calls.
Edited /etc/entities.local.conf and added:
(deg) °
Copied wallpaper background image to:
/usr/share/dokuwiki/lib/images/paper.gif
Inserted ito /etc/dokuwiki/userstyle.css
body {background-image:url(/dokuwiki/lib/images/paper.gif) !important;}
Edited /etc/dokuwiki/local.php to allow embedded HTML code within wiki pages:
$conf['htmlok'] = 1;
To insert HTML code in wiki pages surround blocks of code with:
<HTML> (your code) </HTML>
or inline
<html>(your code)</html>
Inserted ito /etc/dokuwiki/userstyle.css
body {margin:25px;}
div.shadows {
width: 80%;
background-color: white;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
margin-bottom: 25px;
}
div.container {
text-align: center;
padding: 10px 5px;
}
Invoke this with:
<HTML>
<center><div class="shadows">
<center>
</HTML>
{{wiki:NAMESPACE:IMAGE.JPG?WIDTH|ALT-DESCRIPTION}} (can have multiple images here)
<HTML>
</center>
<div class="container">
<p>LONG-CAPTION-TO-DISPLAY-BELOW-IMAGE(S)</p>
</div>
</div></center>
</HTML>
When you edit a page, DokuWiki creates a revision with the old document. The old versions can be viewed by clicking the Old Revisions button. On the page shown, revisions can be compared with the diff tool.
Disabling button
Displaying the Old Revisions button can be disabled in the disableactions config option.
Revisions are stored within the attic directory, within the configured savedir.
The compression configuration option specifies if the pages will be saved as compressed files or not.
The default system path is <dokuwiki>/data/attic/<namespace>/<attic file>.
To remove any of the contents of the attic you can manually remove the corresponding files and sub-directories from the system.
To also remove the list from DokuWiki, edit the metafile ./data/meta/<namespace>.changes