1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,26 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+/* |
|
4 |
+ * This file is part of contao-weinanlieferung-bundle. |
|
5 |
+ * |
|
6 |
+ * (c) vonRotenberg |
|
7 |
+ * |
|
8 |
+ * @license commercial |
|
9 |
+ */ |
|
10 |
+ |
|
11 |
+use Contao\CoreBundle\DataContainer\PaletteManipulator; |
|
12 |
+ |
|
13 |
+PaletteManipulator::create() |
|
14 |
+ ->addField('memberno','personal_legend',PaletteManipulator::POSITION_APPEND) |
|
15 |
+ ->applyToPalette('default','tl_member'); |
|
16 |
+ |
|
17 |
+ |
|
18 |
+$GLOBALS['TL_DCA']['tl_member']['fields']['memberno'] = array |
|
19 |
+( |
|
20 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_member']['memberno'], |
|
21 |
+ 'exclude' => true, |
|
22 |
+ 'search' => true, |
|
23 |
+ 'inputType' => 'text', |
|
24 |
+ 'eval' => array('maxlength'=>16, 'tl_class'=>'w50'), |
|
25 |
+ 'sql' => "varchar(16) NOT NULL default ''", |
|
26 |
+); |