Ceci est une ancienne révision du document !
Table des matières
DokuBook Template
Compatible avec DokuWiki
2010-10-27, 2010-11-07, 2011-11-10, 2011-05-25, 2012-01-25, 2012-09-10, 2012-10-13
Prend l'apparence de MediaWiki comme point de départ mais n'essaie pas de copier l'aspect et le comportement de MediaWiki
Cette extension n'a pas été mise à jour par ses developpeurs depuis plus de deux ans. Elle pourrait ne plus être maintenue ou comporter des problèmes de compatibilité.
Cette extension ne se trouve ni dans la catégorie «plugin» ni dans la catégorie «template» et est par conséquent ignorée.
Idée
Le but de ce template n'est pas de copier complètement l'aspect et le comportement (look and feel) de MediaWiki. Si vous cherchez un template pour DokuWiki dans le style de MediaWiki, essayez le template Monobook. Il fournit quelques fonctionnalités supplémentaires absentes dans celui-ci. Ce template utilise seulement l'apparence de MediaWiki comme point de départ et n'inclue pas de fonctionnalité supplémentaire comme les discussions et ainsi de suite.
Caractèristiques
- custom navigation per namespace build from a normal wikipage
- custom footer per namespace build from a normal wikipage
Téléchargements
- dernière version : http://r.notomorrow.de/dokuwiki-template-dokubook/pkg/dokubook.tgz
- toute version : http://r.notomorrow.de/dokuwiki-template-dokubook/pkg
Changements
- diff user color fix (2017-12-26 03:59)
- css update (2017-12-26 03:48)
- stable (2016-09-16 17:59)
- update info (2016-09-16 17:55)
- Merge pull request #6 from araname/master (2016-09-16 17:52)
Anciens téléchargments
version de DokuWiki | téléchargement |
---|---|
2010-10-07 | template-dokubook.tgz |
2009-12-25 | template-dokubook-2009-12-25.tgz |
2009-02-14 | template-dokubook-2009-02-08.tgz |
2008-05-05 | template-dokubook-2008-10-15.tgz |
Github URL | https://github.com/chimeric/dokuwiki-template-dokubook |
Installation
- téléchargez l'archive tar/zip
- extrayez là dans le répertoire
<dokuwiki>/lib/tpl/
- identifiez vous en tant qu'admin et changez le template dans le panneau d’administration
en utilisant git :
% cd <dokuwiki>/lib/tpl/ % git clone git://github.com/samfisch/dokuwiki-template-dokubook.git dokubook
Installation sous Debian (et probablement tout autre distribution) :
# cd /usr/share/dokuwiki/lib/tpl/ # wget http://r.notomorrow.de/dokuwiki-template-dokubook/pkg/dokubook.tgz # tar -xvzf template-dokubook.tgz # chown -Rv 33 dokubook/
For openSUSE change owner and group als follows:
# chown -Rv wwwrun dokubook/ # chgrp -Rv www dokubook/
Configuration
You can change the following settings via the DokuWiki “Configuration Settings” Dialog.
Option | Value(s) |
---|---|
Pagename | Name of wikipages which should be treated as “navigation/footer”. |
Closed Wiki | If you activate this option the navigation will only show up to logged in users. |
Sidebar position | Determines the position of the sidebar (left/right) |
Logo | Instead of using a logo file in the templates images/ folder you can also configure a logo path |
Premières étapes
Creating the Navigation
The template looks for a wiki page called navigation
, or whatever you've defined in the configuration, in the current namespace to include it as the sidebar. If this file doesn't exist it looks in the upper namespace and so forth. If it can't find a proper file the sidebar will show the index instead.
Example navigation:
* [[link1]] * [[link2]] * [[link3]]
Of course you could also use any of the many existing navigation plugins.
Création du pied de page
Like with the navigation the template also includes a wiki page called footer
, or whatever you've defined in the configuration, as the footer.
Ajout d'un logo personnalisé
Ce template cherche un fichier appelé logo.[jpg|jpeg|png]' dans le répertoire
<dokuwki>/lib/tpl/dokubook/images/. Si ce fichier existe il sera affiché en tant que logo. Si ce fichier n'existe pas le logo de DokuWiki sera affiché à la place.
===== Browser Compatibility =====
The template was tested with the following Browsers.
If you've seen it working with other browsers feel free to add them to the list !
* Firefox (Win 2.0.0.9, Linux 2.0, Mac OS X 2.0.0.1)
* Opera (Win / Linux 8.5, 9.01, 9.24, 10.53)
* IE (Win 6.0, 7.0)
* AvantBrowser (Win / IE 6.0)
* Konqueror (Linux 3.5.1)
* Safari (Mac OS X 2.04)
* Shiira 2.2 (MAC OS X 10.4.10)
* Safari 3 Beta2 (MAC OS X 10.4.10)
* Safari 3.2.1 (MAC OS X 10.5.5)
* Camino 1.5.4 (Mac OS X 10.4.11)
* SeaMonkey 1.1.9 (Windows Vista SP1)
* Google Chrome 0.2.149.27 (XP sp2)
* Firefox (Ubuntu/8.04 hardy 3.0.3)
===== Sites utilisant ce template =====
* http://wiki.aquasonic.ch – aquasonic wiki
* http://tuxhelp.org – Linux wiki
* http://www.3open.org/d/ – wiki on open source solutions.
* http://doc.rhizome-fai.net/ – Rhizome documentation
* Ajoutez le votre ici
===== FAQ =====
==== Can I hide the labels of the navigation boxes? ====
The IMHO cleanest solution for, instead of removing them from the tpl_fuctions.php file is hiding them via CSS, that's what CSS is good for namely modifying the appearance without the need to modify the content itself. Adding the following to your
<dokuwiki>/conf/userstyle.css (if it doesn't exist, create it) should solve your issue . <code css>
div.dokuwiki span.sb_label { display: none; }
</code>
==== Is it possible to make the sidebar/navigationbar a bit wider? ====
When I have multiple subfolders in there, the text is overlapping the main page.
Change
dokubook_design.css
<code css>
/* presume sidebar is left */
div.dokuwiki div#sidebar_left { width: 160px; }
/* change the 160px to the required width */
div.dokuwiki div#dokubook_container_left { left: 170px;}
/* change the 170px to the required width + 10 */
</code>
==== Is there any way for the Search function to show at the top of the sidebar rather than after the Navigation / Index area? ====
Edit the
tpl_functions.php file located inside the template directory - search for:
generate the searchbox
And move this line including the 4 following lines above:
main navigation
==== Is there a way to change the font in your template to the default one's? ====
Edit
<dokuwiki>/conf/userstyle.css'':
body { font-family: <yourfont>; }
Discussion
Veuillez vous référer à la version anglaise de cette page.