Browse code

Modernize and adjust code to Contao 5

Benjamin Roth authored on26/10/2023 15:21:49
Showing1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,28 +0,0 @@
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
-\Contao\CoreBundle\DataContainer\PaletteManipulator::create()->addField('rs_columns_load_css_flex','rs_columns_load_css')->applyToPalette('default','tl_layout');
16
-
17
-/*
18
- * Add fields
19
- */
20
-
21
-$GLOBALS['TL_DCA']['tl_layout']['fields']['rs_columns_load_css_flex'] = array
22
-(
23
-  'label'                   => &$GLOBALS['TL_LANG']['tl_layout']['rs_columns_load_css_flex'],
24
-  'exclude'                 => true,
25
-  'inputType'               => 'checkbox',
26
-  'eval'                    => array('tl_class'=>'w50'),
27
-  'sql'                     => "char(1) NOT NULL default ''",
28
-);
Browse code

Do not load flexbox stylesheet as default

Benjamin Roth authored on10/03/2019 13:30:59
Showing1 changed files
... ...
@@ -24,5 +24,5 @@ $GLOBALS['TL_DCA']['tl_layout']['fields']['rs_columns_load_css_flex'] = array
24 24
   'exclude'                 => true,
25 25
   'inputType'               => 'checkbox',
26 26
   'eval'                    => array('tl_class'=>'w50'),
27
-  'sql'                     => "char(1) NOT NULL default '1'",
27
+  'sql'                     => "char(1) NOT NULL default ''",
28 28
 );
Browse code

Add flexbox extension to rocksolid columns again

Benjamin Roth authored on10/03/2019 13:23:11
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,28 @@
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
+\Contao\CoreBundle\DataContainer\PaletteManipulator::create()->addField('rs_columns_load_css_flex','rs_columns_load_css')->applyToPalette('default','tl_layout');
16
+
17
+/*
18
+ * Add fields
19
+ */
20
+
21
+$GLOBALS['TL_DCA']['tl_layout']['fields']['rs_columns_load_css_flex'] = array
22
+(
23
+  'label'                   => &$GLOBALS['TL_LANG']['tl_layout']['rs_columns_load_css_flex'],
24
+  'exclude'                 => true,
25
+  'inputType'               => 'checkbox',
26
+  'eval'                    => array('tl_class'=>'w50'),
27
+  'sql'                     => "char(1) NOT NULL default '1'",
28
+);