-……-
Da man unten rechts viel zu informativ war, habe ich die Funktion 'tpl_pageinfo()' modifiziert. Die Funktion befindet sich in der Datei 'inc/template.php' circa Zeile 864.
/** * Print some info about the current page * * @author Andreas Gohr <andi@splitbrain.org> * @mod The Tux */ function tpl_pageinfo(){ global $conf; global $lang; global $INFO; global $REV; global $ID; // return if we are not allowed to view the page if (!auth_quickaclcheck($ID)) { return; } // prepare date and path $fn = $INFO['filepath']; /* Meine Modifikation * if(!$conf['fullpath']){ if($REV){ $fn = str_replace(fullpath($conf['olddir']).'/','',$fn); }else{ $fn = str_replace(fullpath($conf['datadir']).'/','',$fn); } } */ $fn = str_ireplace(getcwd().'/data/pages/', '', $fn); /* Ende meiner Modifikation */ $fn = utf8_decodeFN($fn); $date = strftime($conf['dformat'],$INFO['lastmod']); // print it if($INFO['exists']){ print $fn; print ' · '; print $lang['lastmod']; print ': '; print $date; if($INFO['editor']){ print ' '.$lang['by'].' '; print $INFO['editor']; }else{ print ' ('.$lang['external_edit'].')'; } if($INFO['locked']){ print ' · '; print $lang['lockedby']; print ': '; print $INFO['locked']; } return true; } return false; }
Das DokuWiki unterstützt im Moment (August 2008) nur die verbreitesten Dateiformate. Schade dabei ist, dass es '*.svg' und '*.ogg' Dateien strickt den Zugang verwehrt. Abhilfe schaffen folgende Zeilen in der Datei 'conf/mime.conf':
svg image/svg+xml svgz image/svg+xml ogg application/ogg ogg audio/ogg ogg video/ogg