−Inhaltsverzeichnis
Installations und Tuning von Dokuwiki
Installationsgang
- Version dokuwiki-2009-02-14b.tgz in Webserververzeichns entpacken
- Entsprechend umbenennen
- Über http://webserver/dokuwikinamen aufrufen
- Installationsgang durchführen (zuerst Sprache einstellen)
- Theme monobook installieren (Compact CSS and Javascript files abschalten) + Plugin WikiDisplay
- Hierarchischen und Krümmelpfad einstellen + CSS bearbeiten (Schriftgröße)
- Pages-Verzeichnis einstellen
- Möglichkeiten: mehrere Pagesverzeichnisse, Zugriffe auf lokale Verzeichnisse, Zugriff auf entfernte Verzeichnisse, Verzeichnisse auf Datenstiften. (Eventuelle Rechteprobleme)
- Externe Bearbeitung von Seiten
- Formelsatz-Plugins installieren
- jsmath, in Konfiguration Pfad einstellen
- asciimath
Tipps und Hinweise
Template Monobook
Toolbox und Register anpassen: in der Datei context.php
Schriftgröße bei Benutzerführung ändern - geschieht in der Datei main.css
#catlinks { border: 1px solid #aaa; background-color: #f9f9f9; padding: 1px; margin-top: 1em; font-size: 0.8em; // Hier wird die Schriftgröße nach Wunsch verkleinert clear: both; }
Hierarchischer Pfad (ohne Namespace !). Datei /inc/template.php ca. Zeilennummer 800
/** * Hierarchical breadcrumbs * * This code was suggested as replacement for the usual breadcrumbs. * It only makes sense with a deep site structure. * * @author Andreas Gohr <andi@splitbrain.org> * @author Nigel McNie <oracle.shinoda@gmail.com> * @author Sean Coates <sean@caedmon.net> * @author <fredrik@averpil.com> * @todo May behave strangely in RTL languages */ function tpl_youarehere($sep=' » '){ global $conf; global $ID; global $lang; // check if enabled if(!$conf['youarehere']) return false; $parts = explode(':', $ID); $count = count($parts); echo '<span class="bchead">'.$lang['youarehere'].': </span>'; // always print the startpage /* LeJos */ $title = useHeading('navigation') ? p_get_first_heading($conf['start']) : $conf['start']; if(!$title) $title = $conf['start']; // tpl_link(wl($conf['start']),hsc($title),'title="'.$conf['start'].'"'); /* LeJos */ // print intermediate namespace links $part = ''; for($i=0; $i<$count - 1; $i++){ $part .= $parts[$i].':'; $page = $part; resolve_pageid('',$page,$exists); if ($page == $conf['start']) continue; // Skip startpage // output if (!($page == 'tmwiki:start')) echo $sep; // changed by LeJos if($exists){ $title = useHeading('navigation') ? p_get_first_heading($page) : $page; if(!$title) $title = $parts[$i]; tpl_link(wl($page),hsc(noNS($page)),'title="'.$page.'"'); }else{ tpl_link(wl($page),$parts[$i],'title="'.$page.'" class="wikilink2" rel="nofollow"'); /* LeJos $title = useHeading('navigation') ? p_get_first_heading($page) : $page; if(!$title) $title = $parts[$i]; tpl_link(wl($page),hsc($title),'title="'.$page.'"'); }else{ tpl_link(wl($page),$parts[$i],'title="'.$page.'" class="wikilink2" rel="nofollow"'); LeJos */ } } // print current page, skipping start page, skipping for namespace index if(isset($page) && $page==$part.$parts[$i]) return; $page = $part.$parts[$i]; if($page == $conf['start']) return; echo $sep; if(page_exists($page)){ $title = useHeading('navigation') ? p_get_first_heading($page) : $page; if(!$title) $title = $parts[$i]; tpl_link(wl($page),hsc(noNS($page)),'title="'.$page.'"'); }else{ tpl_link(wl($page),$parts[$i],'title="'.$page.'" class="wikilink2" rel="nofollow"'); /* LeJos $title = useHeading('navigation') ? p_get_first_heading($page) : $page; if(!$title) $title = $parts[$i]; tpl_link(wl($page),hsc($title),'title="'.$page.'"'); }else{ tpl_link(wl($page),$parts[$i],'title="'.$page.'" class="wikilink2" rel="nofollow"'); LeJos */ } return true; }