Browse code

Modernize and adjust code to Contao 5

Benjamin Roth authored on26/10/2023 15:21:49
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,30 @@
1
+<?php
2
+
3
+/*
4
+ * This file is part of eSales Media ContentHelperBundle
5
+ *
6
+ * (c) Benjamin Roth
7
+ *
8
+ * @license proprietary
9
+ */
10
+
11
+/*
12
+ * Modify palettes
13
+ */
14
+
15
+use Contao\CoreBundle\DataContainer\PaletteManipulator;
16
+
17
+PaletteManipulator::create()->addField('rs_columns_load_css_flex','rs_columns_load_css')->applyToPalette('default','tl_layout');
18
+
19
+/*
20
+ * Add fields
21
+ */
22
+
23
+$GLOBALS['TL_DCA']['tl_layout']['fields']['rs_columns_load_css_flex'] = array
24
+(
25
+  'label'                   => &$GLOBALS['TL_LANG']['tl_layout']['rs_columns_load_css_flex'],
26
+  'exclude'                 => true,
27
+  'inputType'               => 'checkbox',
28
+  'eval'                    => array('tl_class'=>'w50'),
29
+  'sql'                     => "char(1) NOT NULL default ''",
30
+);