Ich habe mein eigenes Modul angelegt und in der autoload.php folgendes eingetragen:
Code:
ClassLoader::addClasses(array(
'tl_calendar_events' => 'system/modules/jbn/classes/tl_calendar_events.php',
));
Dann gibt es eine entsprechende Datei die so aussieht:
Code:
use Backend;
/**
* Class tl_calendar_events
*
*/
class tl_calendar_events extends \Backend\tl_calendar_events
{
public function listEvents($arrRow)
{
$span = Calendar::calculateSpan($arrRow['startTime'], $arrRow['endTime']);
if ($span > 0)
{
$date = Date::parse($GLOBALS['TL_CONFIG'][($arrRow['addTime'] ? 'datimFormat' : 'dateFormat')], $arrRow['startTime']) . ' - ' . Date::parse($GLOBALS['TL_CONFIG'][($arrRow['addTime'] ? 'datimFormat' : 'dateFormat')], $arrRow['endTime']);
}
elseif ($arrRow['startTime'] == $arrRow['endTime'])
{
$date = Date::parse($GLOBALS['TL_CONFIG']['dateFormat'], $arrRow['startTime']) . ($arrRow['addTime'] ? ' ' . Date::parse($GLOBALS['TL_CONFIG']['timeFormat'], $arrRow['startTime']) : '');
}
else
{
$date = Date::parse($GLOBALS['TL_CONFIG']['dateFormat'], $arrRow['startTime']) . ($arrRow['addTime'] ? ' ' . Date::parse($GLOBALS['TL_CONFIG']['timeFormat'], $arrRow['startTime']) . '-' . Date::parse($GLOBALS['TL_CONFIG']['timeFormat'], $arrRow['endTime']) : '');
}
return '<div class="tl_content_left"><span style="color:#333;padding-right:5px">[' . $date . ']</span> ' . $arrRow['title'] . '</div>';
}
}
Im Prinzip soll hier nur die Anzeige umgedreht werden und später noch ein weitere Flag hinzu kommen.
Nur wird diese Klasse anscheinend gar nicht erst geladen...
Lesezeichen