====== Dokuwiki ======
Hier beschreibe ich meine vorgenommenen Anpassungen an Dokuwiki.
===== TIPS =====
==== Zugriffsrechte unter UBUNTU richtig setzen: ====
sudo chown -R www-data:www-data /var/www/ihp-wiki
==== Refresh of the whole wiki ====
To force recaching of all pages, including page instructions, touch the local configuration file, conf/local.php. Saving the configuration settings form over the admin interface will have the same effect.
==== Find a specific string in a file in a directory ====
This function is used to find broken links or not used pages in the wiki.
grep -R "text string to searchâ directory-path
==== Apache2 Server ====
Weiterleitung unter ubuntu/apache2 einrichten
/etc/apache2/sites-available/default
Apache2 neustarten
/etc/init.d/apache2 restart
===== Internal DOKUWIKI modifications =====
==== Usage of colored wikilinks ====
syntax :\\
linkcolor :XXX or XXXXXX HEX-Values\\
hovercolor:XXX or XXXXXX HEX-Values\\
with hover [[:#aa0#0a0#:start|STARTSEITE]]
[[:#linkcolor#hovercolor#link|Description]]
without hover [[:#aa0#:start|STARTSEITE]]
[[:#linkcolor#link|Description]]
edit file: dokuwiki/inc/parser/xhtml.php
$color = '';
$hover_color = '';
$parts=explode('#', $id, 4);
if (count($parts) === 3) {$id = $parts[2];$color = $parts[1];}//get color string
elseif (count($parts) === 4) {$id = $parts[3];$hover_color = $parts[2];$color = $parts[1];}//get color string
if($color){$link['style'] = 'color:#'.$color;}
if($hover_color){$link['style'] .= ';" onmouseover="this.style.color=\'#'.$hover_color.'\';" onmouseout="this.style.color=\'#'.$color.'\';"';}