Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
about:dokuwiki [2023/06/01 20:23] – removed - external edit (Unknown date) 127.0.0.1about:dokuwiki [2024/02/11 13:57] (current) – [Table] Zyzonix
Line 1: Line 1:
 +===== DokuWiki customizations for FIXES=====
  
 +==== Changelog setting ====
 +Our setting for changelog under [[:changelog|FIXES changelog]] looks like this:
 +<code bash>
 +<WRAP >
 +{{changes>count = 1000 & type = create, edit, minor & render = list(dayheaders, signature, summary)}}
 +</WRAP>
 +</code>
 +
 +==== 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:
 +<code bash>
 +jQuery(function() {
 +    jQuery('#wiki__text').height('600px');
 +});
 +</code>
 +<callout type="warning" icon="true">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!</callout>
 +
 +-----
 +==== 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:
 +<code bash>$conf['userewrite'] = 1;</code>
 +
 +''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:
 +<code bash>LoadModule rewrite_module modules/mod_rewrite.so</code>
 +**''apache2.conf''**: Execute this command to enable the module:
 +<code bash>a2enmod rewrite</code>
 +
 +**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:
 +<code bash>
 +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
 +</code>
 +
 +**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|}}