So geht es: "T" beim LAbel war groß und klein geschrieben
PHP-Code:
use Contao\CoreBundle\DataContainer\PaletteManipulator;
$GLOBALS['TL_DCA']['tl_calendar_events']['fields']['teilnahme'] = [
'label' => ['Teilnahme', 'Lorem Ipsum'],
'exclude' => true,
'search' => true,
'inputType' => 'select',
'options' => array('index,follow', 'index,nofollow', 'noindex,follow', 'noindex,nofollow'),
'eval' => array('tl_class'=>'w50', 'includeBlankOption' => true),
'sql'
];
PaletteManipulator::create()
->addLegend('Test', 'details_legend', PaletteManipulator::POSITION_AFTER)
->addField('teilnahme', 'Test', PaletteManipulator::POSITION_APPEND)
->applyToPalette('default', 'tl_calendar_events')
;
Lesezeichen