Habe nun folgendes erstellt:
system/modules/tageinesjahres/tageinesjahres.php
system/modules/tageinesjahres/config/config.php
tageinesjahres.php =
PHP-Code:
<?php
// Datei /system/modules/tageinesjahres/tageinesjahres.php
class tageinesjahres extends Frontend
public function dayoftheyearInsertTag(&$strTag, $blnCache)
{
$arrSplit = explode('::', $strTag);
switch (strtolower($arrSplit[0]))
{
case 'dayoftheyear':
return date('z') + 1;
break;
default:
return false;
}
}
?>
config.php =
PHP-Code:
<?php
// Datei /system/modules/tageinesjahres/config/config.php
// Registrieren des Hooks replaceInsertTags
$GLOBALS['TL_HOOKS']['replaceInsertTags'][] = array('tageinesjahres', 'dayoftheyearInsertTag');
?>
Habe anschließend die autoload.php neu erstellt.
Funktioniert leider nicht.
Habe ich etwas übersehen oder vergessen?
Lesezeichen