feat: add Contao 5.7 event import bundle

This commit is contained in:
Jürgen Mummert
2026-03-01 22:17:53 +01:00
commit 88af59e9a0
7 changed files with 467 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
<?php
declare(strict_types=1);
if (!isset($GLOBALS['TL_DCA']['tl_calendar_events']['fields']['externalId'])) {
$GLOBALS['TL_DCA']['tl_calendar_events']['fields']['externalId'] = [
'label' => ['External ID', 'Stabile externe ID für den Nossener-Land-Import.'],
'exclude' => true,
'search' => true,
'sorting' => true,
'filter' => true,
'inputType' => 'text',
'eval' => ['maxlength' => 64, 'tl_class' => 'w50'],
'sql' => ['type' => 'string', 'length' => 64, 'default' => ''],
];
}
$GLOBALS['TL_DCA']['tl_calendar_events']['config']['sql']['keys'] ??= [];
if (!isset($GLOBALS['TL_DCA']['tl_calendar_events']['config']['sql']['keys']['externalId'])) {
$GLOBALS['TL_DCA']['tl_calendar_events']['config']['sql']['keys']['externalId'] = 'index';
}