This is an old revision of the document!
DokuWiki customizations for FIXES
Changelog setting
Our setting for changelog under FIXES changelog looks like this:
<WRAP > {{changes>count = 1000 & type = create, edit, minor & render = list(dayheaders, signature, summary)}} </WRAP>
Change height of editor window
To set a custom default height of the editor windows of DokuWiki create a file named userscript.js
under conf/
of the DokuWiki base directory. Then add this content:
jQuery(function() { jQuery('#wiki__text').height('600px'); });
URL-Rewriting
To make the URL look more fancy, you can use URL-rewriting. Our configuration for this wiki looks like this:
1. Edit conf/local.php
and add the following line:
$conf['userewrite'] = 1;
userewrite
can have this values:
Value | Description | Example URL |
---|---|---|
0 | Kein URL Rewriting. Dies ist die Standardeinstellung. | http://example.com/dokuwiki/doku.php?id=wiki:syntax |
1 | Rewriting wird vom Webserver durchgeführt. | http://example.com/dokuwiki/wiki:syntax |
2 | Rewriting wird von DokuWiki durchgeführt. | http://example.com/dokuwiki/doku.php/wiki:syntax |
2. Then edit your apache2
/httpd
config (httpd.conf
or apache2.conf
) to load the required module:
httpd.conf
: Add this line:
LoadModule rewrite_module modules/mod_rewrite.so
apache2.conf
: Execute this command to enable the module:
a2enmod rewrite
3. Edit your virtual host config:
Change the line beginning with AllowOverride
to AllowOverride All
.
4. Then copy the .htaccess.dist
from the dokuwiki base directory to .htaccess
.
Then uncomment the following lines:
RewriteEngine on RewriteRule ^_media/(.*) lib/exe/fetch.php?media=$1 [QSA,L] RewriteRule ^_detail/(.*) lib/exe/detail.php?media=$1 [QSA,L] RewriteRule ^_export/([^/]+)/(.*) doku.php?do=export_$1&id=$2 [QSA,L] RewriteRule ^$ doku.php [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) doku.php?id=$1 [QSA,L] RewriteRule ^index.php$ doku.php
5. Finally restart apache or httpd.