Ich habe das Template mit dem Inserttag {{file::*}} eingebunden. Wenn ich das CE offline nehme, dann funktioniert die Seite.
Der Code stammt in Teile von Spooky (siehe meine verlinkten Posts).
Der obere und untere Teil ist Navigation zwischen aktuellem Jahr und zwei folgende Jahre, also 2023, 2024 und 2025.
Selbst wenn die nur den mittleren Teil im Template belasse, kommt ein 404.
PHP-Code:
// ID of calendar module
$intModuleId = 19;
// current year and month
$actualDate = date('Ym',strtotime("01 January now"));
// given year and month
if ($inputMonth = \Input::get('month'))
{
$actualDate = $inputMonth;
}
// extract year and month
$currentYear = intval(substr($actualDate, 0, 4));
$currentMonth = intval(substr($actualDate, -2));
for( $i = 0; $i <= 11; ++$i )
{
$nextYear = $currentYear;
$nextMonth = $currentMonth + $i;
// next month output
if ($i%3 == 0) echo '<div class="row">';
echo '<div class="col-xs-12 col-sm-4">';
\Input::setGet('month', $nextYear.str_pad($nextMonth, 2, '0', STR_PAD_LEFT));
echo \Controller::getFrontendModule($intModuleId);
echo '</div>';
if ($i%3 == 2) echo '</div>';
}
Lesezeichen