Browse code

Update

Benjamin Roth authored on15/08/2023 15:29:18
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,25 @@
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
+    ->addLegend('wa_config_legend','global_legend')
15
+    ->addField('vr_wa_uploadFolderSRC','wa_config_legend',PaletteManipulator::POSITION_APPEND)
16
+    ->applyToPalette('root','tl_page')
17
+    ->applyToPalette('rootfallback','tl_page');
18
+
19
+
20
+$GLOBALS['TL_DCA']['tl_page']['fields']['vr_wa_uploadFolderSRC'] = array(
21
+    'exclude'    => true,
22
+    'inputType'  => 'fileTree',
23
+    'eval'       => array('fieldType'=>'radio', 'files'=>false, 'mandatory'=>true, 'tl_class'=>'clr'),
24
+    'sql'        => "binary(16) NULL"
25
+);