feat: add Contao 5.7 event import bundle
This commit is contained in:
@@ -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';
|
||||
}
|
||||
Reference in New Issue
Block a user