Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
software:dokuwiki [2008/06/07 05:04] cyril |
software:dokuwiki [2022/04/08 07:34] (current) cyril [The sidebar] with new version |
||
---|---|---|---|
Line 3: | Line 3: | ||
[[http:// | [[http:// | ||
- | ===== Have it working on free.fr ===== | ||
- | There was some problems to have it working on my host Free. | + | ===== Le faire fonctionner sur les pages persos de free.fr ===== |
- | Someone created | + | Il y a quelques problèmes pour le faire fonctionner chez Free, mais quelqu' |
+ | Cependant dokuwiki est dorénavant banni chez Free. Si vous êtes détecté, votre compte sera suspendu pour le motif : | ||
+ | >Les interfaces utilisant des fichiers locaux comme base de données/ | ||
+ | |||
+ | ===== Install with Nginx ===== | ||
+ | |||
+ | '' | ||
+ | |||
+ | There are suggestions of configuration [[https:// | ||
+ | |||
+ | Therefore I use this configuration, | ||
+ | # always needed | ||
+ | location ~ / | ||
+ | deny all; | ||
+ | } | ||
+ | | ||
+ | # needed to support old rewrite | ||
+ | location ~ / | ||
+ | rewrite ^/ | ||
+ | } | ||
+ | |||
+ | # needed for new rewrite | ||
+ | location ~ /wiki/lib/ {} | ||
+ | location ~ /wiki/ { | ||
+ | rewrite ^/ | ||
+ | rewrite ^/ | ||
+ | rewrite ^/ | ||
+ | rewrite ^/wiki/(.*) / | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | With version '' | ||
===== The sidebar ===== | ===== The sidebar ===== | ||
Line 21: | Line 51: | ||
You can change some options in '' | You can change some options in '' | ||
+ | |||
+ | In version '' | ||
Line 34: | Line 66: | ||
Those I use are: | Those I use are: | ||
- | * [[http:// | ||
- | * [[http:// | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
==== source ==== | ==== source ==== | ||
+ | |||
+ | It wasn't finding the local files without giving the full path. So I've added several cases where if it fails to find the file, it tries to find it relatively to the website root and relatively to the dokuwiki media path. | ||
<code diff> | <code diff> | ||
Line 47: | Line 87: | ||
+ if (empty($source)) $source = @file(DOKU_INC." | + if (empty($source)) $source = @file(DOKU_INC." | ||
if (empty($source)) return ''; | if (empty($source)) return ''; | ||
+ | </ | ||
+ | |||
+ | ==== pageindex ==== | ||
+ | |||
+ | I modified it so that it displays directories/ | ||
+ | |||
+ | <code diff> | ||
+ | syntax.php: | ||
+ | - if ($type == ' | ||
+ | + if ($type == ' | ||
+ | + { | ||
+ | + $id = pathID($file); | ||
+ | + if($opts[' | ||
+ | + { | ||
+ | + $data[] = array( | ||
+ | + ' | ||
+ | + ' | ||
+ | + ' | ||
+ | + } | ||
+ | + return true; | ||
+ | + } | ||
</ | </ | ||
===== Show start on directory ===== | ===== Show start on directory ===== | ||
+ | |||
+ | To show the start page when clicking on a directory/ | ||
<code diff> | <code diff> | ||
Line 70: | Line 133: | ||
+ $base = substr($base, | + $base = substr($base, | ||
+ if ($base == " | + if ($base == " | ||
+ | </ | ||
+ | |||
+ | ===== Allow more file types for upload ===== | ||
+ | |||
+ | In conf/ | ||
+ | < | ||
+ | html text/html | ||
+ | htm | ||
+ | txt | ||
+ | conf text/plain | ||
+ | xml | ||
+ | bas | ||
+ | pas | ||
+ | c | ||
+ | cpp | ||
+ | cxx | ||
+ | h | ||
+ | hpp | ||
+ | hxx | ||
</ | </ |