1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,61 @@ |
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_module |
|
18 |
+ */ |
|
19 |
+$GLOBALS['TL_DCA']['tl_module']['fields']['editable'] = array |
|
20 |
+( |
|
21 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_module']['editable'], |
|
22 |
+ 'exclude' => true, |
|
23 |
+ 'inputType' => 'multiColumnWizard', |
|
24 |
+// 'options_callback' => array('tl_module', 'getEditableMemberProperties'), |
|
25 |
+ 'eval' => array |
|
26 |
+ ( |
|
27 |
+ 'columnFields' => array |
|
28 |
+ ( |
|
29 |
+ 'eSM_editable' => array |
|
30 |
+ ( |
|
31 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_module']['eSM_editable_field'], |
|
32 |
+ 'exclude' => true, |
|
33 |
+ 'inputType' => 'select', |
|
34 |
+ 'options_callback' => array('tl_module', 'getEditableMemberProperties'), |
|
35 |
+ 'eval' => array('style'=>'width:250px', 'includeBlankOption'=>true, 'chosen'=>true, 'mandatory'=>true) |
|
36 |
+ ), |
|
37 |
+ 'eSM_class' => array |
|
38 |
+ ( |
|
39 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_module']['eSM_editable_col'], |
|
40 |
+ 'exclude' => true, |
|
41 |
+ 'inputType' => 'select', |
|
42 |
+ '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), |
|
43 |
+ 'eval' => array('style'=>'width:50px', 'includeBlankOption'=>true) |
|
44 |
+ ), |
|
45 |
+ 'eSM_clr' => array |
|
46 |
+ ( |
|
47 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_module']['eSM_editable_clear'], |
|
48 |
+ 'exclude' => true, |
|
49 |
+ 'inputType' => 'checkbox' |
|
50 |
+ ), |
|
51 |
+ 'eSM_mandatory' => array |
|
52 |
+ ( |
|
53 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_module']['eSM_editable_mandatory'], |
|
54 |
+ 'exclude' => true, |
|
55 |
+ 'inputType' => 'checkbox' |
|
56 |
+ ) |
|
57 |
+ ), |
|
58 |
+ 'tl_class' => '' |
|
59 |
+ ), |
|
60 |
+ 'sql' => "blob NULL" |
|
61 |
+); |
|
0 | 62 |
\ No newline at end of file |