===== DokuWiki customizations for FIXES=====
==== Changelog setting ====
Our setting for changelog under [[:changelog|FIXES changelog]] looks like this:
{{changes>count = 1000 & type = create, edit, minor & render = list(dayheaders, signature, summary)}}
==== Change height of editor window ====
To set a custom default height of the editor windows of [[about:DokuWiki]] create a file named ''userscript.js'' under ''conf/'' of the [[about:DokuWiki]] base directory. Then add this content:
jQuery(function() {
jQuery('#wiki__text').height('600px');
});
Remind to set the accurate permissions on this file so that the httpd can read it! Otherwise your custom set default height will not work!
-----
==== 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 | No URL-rewriting. Default setting | http://example.com/dokuwiki/doku.php?id=wiki:syntax |
| 1 | Rewriting will be done by the webserver | http://example.com/dokuwiki/wiki:syntax |
| 2 | Rewriting will be done by [[about:DokuWiki]] | 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 ''[[about:AllowOverride]]'' to ''[[about: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.
**Optional** To make Dokuwiki use slashes instead of colons for seperating the namespaces in the url, activate the configuration setting ''useslash'' in the Advanced-section of the Dokuwiki config:
{{:wiki:useslash_config_setting.png?800|}}