Name

Beispiel

// Funktion in der Datei localconf.php.
function user_checkFeiertag($cmd) {
   switch ($cmd) {
           case 'Ostern':
           if (date("M-d-Y", easter_date()) != date
           ("M-d-Y", time())) return true;
           break;
           default:
           return false;
   }
}

// Condition, die prüft, ob 'heute' Ostern ist.
[userFunc = user_checkFeiertag(Ostern)]

Get TypoScript: kurz & gut now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.