@@ -4,41 +4,35 @@ Usage with columnFields
44``` php
55<?php
66
7- $GLOBALS['TL_DCA']['tl_theme']['fields']['templateSelection'] = array
8- (
9- 'label' => & $GLOBALS['TL_LANG']['tl_theme']['templateSelection'],
10- 'exclude' => true,
11- 'inputType' => 'multiColumnWizard',
12- 'eval' => array
13- (
14- 'columnFields' => array
15- (
16- 'ts_client_os' => array
17- (
18- 'label' => & $GLOBALS['TL_LANG']['tl_theme']['ts_client_os'],
19- 'exclude' => true,
20- 'inputType' => 'select',
21- 'eval' => array
22- (
23- 'style' => 'width:250px',
24- 'includeBlankOption' => true
25- ),
26- 'options' => array
27- (
28- 'option1' => 'Option 1',
29- 'option2' => 'Option 2',
30- )
31- ),
32- 'ts_client_browser' => array
33- (
34- 'label' => & $GLOBALS['TL_LANG']['tl_theme']['ts_client_browser'],
35- 'exclude' => true,
36- 'inputType' => 'text',
37- 'eval' => array('style'=>'width:180px')
38- ),
39- )
40- )
41- );
7+ $GLOBALS['TL_DCA']['tl_theme']['fields']['templateSelection'] = [
8+ 'label' => & $GLOBALS['TL_LANG']['tl_theme']['templateSelection'],
9+ 'exclude' => true,
10+ 'inputType' => 'multiColumnWizard',
11+ 'eval' => [
12+ 'columnFields' => [
13+ 'ts_client_os' => [
14+ 'label' => & $GLOBALS['TL_LANG']['tl_theme']['ts_client_os'],
15+ 'exclude' => true,
16+ 'inputType' => 'select',
17+ 'eval' => [
18+ 'style' => 'width:250px',
19+ 'includeBlankOption' => true,
20+ ],
21+ 'options' => [
22+ 'option1' => 'Option 1',
23+ 'option2' => 'Option 2',
24+ ],
25+ ],
26+ 'ts_client_browser' => [
27+ 'label' => & $GLOBALS['TL_LANG']['tl_theme']['ts_client_browser'],
28+ 'exclude' => true,
29+ 'inputType' => 'text',
30+ 'eval' => [ 'style' => 'width:180px' ],
31+ ],
32+ ],
33+ ],
34+ 'sql' => 'blob NULL',
35+ ];
4236
4337?>
4438```
@@ -50,17 +44,16 @@ Usage with callback
5044``` php
5145<?php
5246
53- $GLOBALS['TL_DCA']['tl_table']['fields']['anything'] = array
54- (
55- 'label' => & $GLOBALS['TL_LANG']['tl_table']['anything'],
56- 'exclude' => true,
57- 'inputType' => 'multiColumnWizard',
58- 'eval' => array
59- (
60- 'mandatory' => true,
61- 'columnsCallback' => array('Class', 'Method')
62- )
63- );
47+ $GLOBALS['TL_DCA']['tl_table']['fields']['anything'] = [
48+ 'label' => & $GLOBALS['TL_LANG']['tl_table']['anything'],
49+ 'exclude' => true,
50+ 'inputType' => 'multiColumnWizard',
51+ 'eval' => [
52+ 'mandatory' => true,
53+ 'columnsCallback' => [ 'Class', 'Method' ],
54+ ],
55+ 'sql' => 'blob NULL',
56+ ];
6457
6558?>
6659```
@@ -72,27 +65,24 @@ Usage with Drag and Drop
7265``` php
7366<?php
7467
75- $GLOBALS['TL_DCA']['tl_theme']['fields']['templateSelection'] = array
76- (
77- 'label' => & $GLOBALS['TL_LANG']['tl_theme']['templateSelection'],
78- 'exclude' => true,
79- 'inputType' => 'multiColumnWizard',
80- 'eval' => array
81- (
68+ $GLOBALS['TL_DCA']['tl_theme']['fields']['templateSelection'] = [
69+ 'label' => & $GLOBALS['TL_LANG']['tl_theme']['templateSelection'],
70+ 'exclude' => true,
71+ 'inputType' => 'multiColumnWizard',
72+ 'eval' => [
8273 // add this line for a new button
83- 'dragAndDrop' => true,
84- 'columnFields' => array
85- (
86- 'ts_client_browser' => array
87- (
88- 'label' => & $GLOBALS['TL_LANG']['tl_theme']['ts_client_browser'],
89- 'exclude' => true,
90- 'inputType' => 'text',
91- 'eval' => array('style'=>'width:180px')
92- ),
93- )
94- )
95- );
74+ 'dragAndDrop' => true,
75+ 'columnFields' => [
76+ 'ts_client_browser' => [
77+ 'label' => & $GLOBALS['TL_LANG']['tl_theme']['ts_client_browser'],
78+ 'exclude' => true,
79+ 'inputType' => 'text',
80+ 'eval' => [ 'style' => 'width:180px' ],
81+ ],
82+ ],
83+ ],
84+ 'sql' => 'blob NULL',
85+ ];
9686
9787?>
9888```
@@ -102,4 +92,4 @@ More information
10292================
10393
10494More information can be found in the contao wiki
105- http://de.contaowiki.org/MultiColumnWizard
95+ http://de.contaowiki.org/MultiColumnWizard
0 commit comments