bmrberlin I would like to have a different start page depending on the day of the week. I wrote a small script, that provides a "file name" according to the name of the day. Not very elegant, but the output works. You'll get, for eample, the file name start_fri for a friday. But how can I integrate this into DOKUWIKI? <?php global $conf; $tagesname = strftime("%a"); $tagesname = strtolower($tagesname); switch($tagesname){ case "sun": $key = array_search('start', $conf); $tagesname = $key.'_'.$tagesname; echo $tagesname; break; case "mon": $key = array_search('start', $conf); $tagesname = $key.'_'.$tagesname; echo $tagesname; break; case "tue": $key = array_search('start', $conf); $tagesname = $key.'_'.$tagesname; echo $tagesname; break; case "wed": $key = array_search('start', $conf); $tagesname = $key.'_'.$tagesname; echo $tagesname; break; case "thu": $key = array_search('start', $conf); $tagesname = $key.'_'.$tagesname; echo $tagesname; break; case "fri": $key = array_search('start', $conf); $tagesname = $key.'_'.$tagesname; echo $tagesname; break; case "sat": $key = array_search('start', $conf); $tagesname = $key.'_'.$tagesname; echo $tagesname; break; } ?> Und weil ich DEUTSCH spreche und schreibe, folgt nun die Heimatversion: Ich würde gerne für jeden Wochentag eine andere Startseite verwenden. Ich habe ein kleines Stück PHP verfaßt, das mir einen Dateinamen in der Form start_fri für einen Freitag liefert. Aber wir integriert man sowas ins DOKUWIKI? Dazu reichen meine Kenntnisse nicht. Mag sich jemand der Sache annehmen?
chi First, please stick to English in the english sub forums! As for your problem, just put the following in the conf/local.protected.php: $conf['start'] = $conf['start'] . '_' . strtolower(strftime('%a'));