DokuWiki

It's better when it's simple

Outils pour utilisateurs

Outils du site


fr:template:dokubook

Ceci est une ancienne révision du document !


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

template Prend l'apparence de MediaWiki comme point de départ mais n'essaie pas de copier l'aspect et le comportement de MediaWiki

Dernière mise à jour
2012-10-03
Dépôt
Source

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.

étiquettes : mediawiki, sidebar

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

Changements

Anciens téléchargments

Installation

  1. téléchargez l'archive tar/zip
  2. extrayez-là dans le répertoire <dokuwiki>/lib/tpl/
  3. 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/

Sous openSUSE changez le propriétaire et le groupe comme ceci :

# 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

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 ;-).

div.dokuwiki span.sb_label { display: none; }

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

/* 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 */

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.

fr/template/dokubook.1380734882.txt.gz · Dernière modification : 2013-10-02 19:28 de bugmenot2

Sauf mention contraire, le contenu de ce wiki est placé sous les termes de la licence suivante : CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki