Browse code

Modal configuration dropdown in module

Benjamin Roth authored on10/01/2023 14:41:17
Showing1 changed files
... ...
@@ -12,4 +12,14 @@ declare(strict_types=1);
12 12
 
13 13
 use vonRotenberg\ModalBundle\Controller\FrontendModule\ModalModuleController;
14 14
 
15
-$GLOBALS['TL_DCA']['tl_module']['palettes'][ModalModuleController::TYPE] = '{title_legend},name,type;{redirect_legend},jumpTo';
15
+$GLOBALS['TL_DCA']['tl_module']['palettes'][ModalModuleController::TYPE] = '{title_legend},name,type;{config_legend},modal_configurations';
16
+
17
+
18
+$GLOBALS['TL_DCA']['tl_module']['fields']['modal_configurations'] = array
19
+(
20
+    'exclude'                  => true,
21
+    'inputType'                => 'select',
22
+    'foreignKey'               => 'tl_vr_modal.title',
23
+    'eval'                     => array('mandatory' => true, 'tl_class' => 'w50', 'insertBlankOption' => true, 'chosen' => true),
24
+    'sql'                      => 'int(10) unsigned NOT NULL default 0'
25
+);