Browse code

Add even more width options to allow grids with 6 cols

Benjamin Roth authored on06/07/2017 20:56:51
Showing1 changed files
... ...
@@ -37,7 +37,7 @@ $GLOBALS['TL_DCA']['tl_form_field']['fields']['eSM_fl_width'] = array
37 37
 	'exclude'                 => true,
38 38
 	'inputType'               => 'select',
39 39
 	'default'                 => 100,
40
-	'options'                 => array(10, 15, 20, 25, 30, 33, 35, 40, 45, 50, 55, 60, 65, 66, 70, 75, 80, 85, 90, 95, 100),
40
+	'options'                 => array(10, 11, 15, '16_5', 20, 22, 25, 30, 33, 35, 40, 44, 45, 50, 55, 60, 65, 66, 70, 75, 80, 85, 90, 95, 100),
41 41
 	'reference'               => &$GLOBALS['TL_LANG']['tl_form_field']['ref_width'],
42 42
 	'eval'                    => array('tl_class'=>'w50'),
43 43
 	'sql'                     => "varchar(3) NOT NULL default '100'"
Browse code

Add 33% and 66% width options to allow grids with 3 cols

Benjamin Roth authored on06/07/2017 20:42:07
Showing1 changed files
... ...
@@ -37,7 +37,7 @@ $GLOBALS['TL_DCA']['tl_form_field']['fields']['eSM_fl_width'] = array
37 37
 	'exclude'                 => true,
38 38
 	'inputType'               => 'select',
39 39
 	'default'                 => 100,
40
-	'options'                 => array(10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100),
40
+	'options'                 => array(10, 15, 20, 25, 30, 33, 35, 40, 45, 50, 55, 60, 65, 66, 70, 75, 80, 85, 90, 95, 100),
41 41
 	'reference'               => &$GLOBALS['TL_LANG']['tl_form_field']['ref_width'],
42 42
 	'eval'                    => array('tl_class'=>'w50'),
43 43
 	'sql'                     => "varchar(3) NOT NULL default '100'"
Browse code

Add default value to select single value select fields

Benjamin Roth authored on14/06/2017 21:19:53
Showing1 changed files
... ...
@@ -12,6 +12,11 @@
12 12
  * @author     Benjamin Roth <benjamin@esales-media.de>
13 13
  */
14 14
 
15
+/**
16
+ * Palettes
17
+ */
18
+$GLOBALS['TL_DCA']['tl_form_field']['palettes']['select'] = str_replace(',class,', ',class,value,',$GLOBALS['TL_DCA']['tl_form_field']['palettes']['select']);
19
+
15 20
 
16 21
 /**
17 22
  * Add fields to tl_form_field
Browse code

Some 3.5.x optimizations and bugfixes

Benjamin Roth authored on05/10/2016 11:48:38
Showing1 changed files
... ...
@@ -32,7 +32,7 @@ $GLOBALS['TL_DCA']['tl_form_field']['fields']['eSM_fl_width'] = array
32 32
 	'exclude'                 => true,
33 33
 	'inputType'               => 'select',
34 34
 	'default'                 => 100,
35
-	'options'                 => array(5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100),
35
+	'options'                 => array(10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100),
36 36
 	'reference'               => &$GLOBALS['TL_LANG']['tl_form_field']['ref_width'],
37 37
 	'eval'                    => array('tl_class'=>'w50'),
38 38
 	'sql'                     => "varchar(3) NOT NULL default '100'"
Browse code

Add missing 5% width option

Benjamin Roth authored on21/01/2016 10:48:10
Showing1 changed files
... ...
@@ -32,7 +32,7 @@ $GLOBALS['TL_DCA']['tl_form_field']['fields']['eSM_fl_width'] = array
32 32
 	'exclude'                 => true,
33 33
 	'inputType'               => 'select',
34 34
 	'default'                 => 100,
35
-	'options'                 => array(10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100),
35
+	'options'                 => array(5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100),
36 36
 	'reference'               => &$GLOBALS['TL_LANG']['tl_form_field']['ref_width'],
37 37
 	'eval'                    => array('tl_class'=>'w50'),
38 38
 	'sql'                     => "varchar(3) NOT NULL default '100'"
Browse code

Initial commit

Benjamin Roth authored on27/03/2015 10:45:40
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,69 @@
1
+<?php
2
+
3
+/**
4
+ * eSales Media Formilicious for Contao Open Source CMS
5
+ *
6
+ * Copyright (C) 2013-2014 eSalesMedia
7
+ *
8
+ * @package    eSM_formilicious
9
+ * @link       http://www.esales-media.de
10
+ * @license    http://www.gnu.org/licenses/lgpl-3.0.html LGPL
11
+ *
12
+ * @author     Benjamin Roth <benjamin@esales-media.de>
13
+ */
14
+
15
+
16
+/**
17
+ * Add fields to tl_form_field
18
+ */
19
+$GLOBALS['TL_DCA']['tl_form_field']['fields']['eSM_fl_clear'] = array
20
+(
21
+	'label'                   => &$GLOBALS['TL_LANG']['tl_form_field']['eSM_fl_clear'],
22
+	'exclude'                 => true,
23
+	'inputType'               => 'checkbox',
24
+	'eval'                    => array('tl_class'=>'w50 m12 cbx'),
25
+	'sql'                     => "char(1) NOT NULL default ''"
26
+);
27
+
28
+
29
+$GLOBALS['TL_DCA']['tl_form_field']['fields']['eSM_fl_width'] = array
30
+(
31
+	'label'                   => &$GLOBALS['TL_LANG']['tl_form_field']['eSM_fl_width'],
32
+	'exclude'                 => true,
33
+	'inputType'               => 'select',
34
+	'default'                 => 100,
35
+	'options'                 => array(10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100),
36
+	'reference'               => &$GLOBALS['TL_LANG']['tl_form_field']['ref_width'],
37
+	'eval'                    => array('tl_class'=>'w50'),
38
+	'sql'                     => "varchar(3) NOT NULL default '100'"
39
+);
40
+
41
+$GLOBALS['TL_DCA']['tl_form_field']['fields']['eSM_fl_class'] = array
42
+(
43
+	'label'                   => &$GLOBALS['TL_LANG']['tl_form_field']['eSM_fl_class'],
44
+	'exclude'                 => true,
45
+	'inputType'               => 'text',
46
+	'eval'                    => array('maxlength'=>255, 'tl_class'=>'w50'),
47
+	'sql'                     => "varchar(255) NOT NULL default ''"
48
+);
49
+
50
+$GLOBALS['TL_DCA']['tl_form_field']['fields']['eSM_fl_lblpadding'] = array
51
+(
52
+	'label'                   => &$GLOBALS['TL_LANG']['tl_form_field']['eSM_fl_lblpadding'],
53
+	'exclude'                 => true,
54
+	'inputType'               => 'checkbox',
55
+	'eval'                    => array('tl_class'=>'w50 m12 cbx'),
56
+	'sql'                     => "char(1) NOT NULL default ''"
57
+);
58
+
59
+$GLOBALS['TL_DCA']['tl_form_field']['fields']['eSM_fl_alignment'] = array
60
+(
61
+	'label'                   => &$GLOBALS['TL_LANG']['tl_form_field']['eSM_fl_alignment'],
62
+	'exclude'                 => true,
63
+	'inputType'               => 'select',
64
+	'default'                 => 'fl_left',
65
+	'options'                 => array('fl_left','fl_right'),
66
+	'reference'               => &$GLOBALS['TL_LANG']['tl_form_field']['ref_alignment'],
67
+	'eval'                    => array('tl_class'=>'w50'),
68
+	'sql'                     => "varchar(8) NOT NULL default ''"
69
+);
0 70
\ No newline at end of file