Danke Spooky,
habe das Template (ce_html_...) etwas abgeändert.
PHP-Code:
<?php
use Contao\Controller;
use Contao\Input;
$intCalendarModuleId = ..; // use the ID of your calendar module here
$intMonth = intval(date('n'));
$intYear = intval(date('Y'));
if ($intMonth % 2 == 0) {
$intMonth--;
}
for ($i=0; $i<2; ++$i)
{
if ($intMonth > 12)
{
++$intYear;
$intMonth = 1;
}
$strYearMonth = $intYear . str_pad($intMonth++, 2, '0', STR_PAD_LEFT);
Input::setGet('month', $strYearMonth);
echo Controller::getFrontendModule($intCalendarModuleId);
}
und Ihn in einem Artikel als
> Elementtyp --> HTML
> Indiv. Template --> Das Template oben (ce_html_...) und
> den HTML-Code --> {{insert_module:XY}} eingebunden. XY = use the ID of your calendar module here
Lesezeichen