... | ... |
@@ -12,7 +12,7 @@ use vonRotenberg\WeinanlieferungBundle\Controller\Frontend\Module\Weinanlieferun |
12 | 12 |
use vonRotenberg\WeinanlieferungBundle\Controller\Frontend\Module\WeinanlieferungSlotsListModuleController; |
13 | 13 |
|
14 | 14 |
$GLOBALS['TL_DCA']['tl_module']['palettes'][WeinanlieferungSlotsListModuleController::TYPE] = '{title_legend},name,headline,type;{wa_config_legend},vr_wa_standortId;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},cssID'; |
15 |
-$GLOBALS['TL_DCA']['tl_module']['palettes'][WeinanlieferungBookedListModuleController::TYPE] = '{title_legend},name,headline,type;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},cssID'; |
|
15 |
+$GLOBALS['TL_DCA']['tl_module']['palettes'][WeinanlieferungBookedListModuleController::TYPE] = '{title_legend},name,headline,type;{wa_config_legend},vr_wa_listPage;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},cssID'; |
|
16 | 16 |
|
17 | 17 |
|
18 | 18 |
$GLOBALS['TL_DCA']['tl_module']['fields']['vr_wa_standortId'] = array( |
... | ... |
@@ -23,3 +23,11 @@ $GLOBALS['TL_DCA']['tl_module']['fields']['vr_wa_standortId'] = array( |
23 | 23 |
'sql' => "blob NULL", |
24 | 24 |
'relation' => array('type' => 'hasMany', 'load' => 'lazy') |
25 | 25 |
); |
26 |
+$GLOBALS['TL_DCA']['tl_module']['fields']['vr_wa_listPage'] = array( |
|
27 |
+ 'exclude' => true, |
|
28 |
+ 'inputType' => 'pageTree', |
|
29 |
+ 'foreignKey' => 'tl_page.title', |
|
30 |
+ 'eval' => array('fieldType'=>'radio', 'tl_class'=>'clr'), |
|
31 |
+ 'sql' => "int(10) unsigned NOT NULL default 0", |
|
32 |
+ 'relation' => array('type'=>'hasOne', 'load'=>'lazy') |
|
33 |
+); |
... | ... |
@@ -8,9 +8,11 @@ |
8 | 8 |
* @license commercial |
9 | 9 |
*/ |
10 | 10 |
|
11 |
+use vonRotenberg\WeinanlieferungBundle\Controller\Frontend\Module\WeinanlieferungBookedListModuleController; |
|
11 | 12 |
use vonRotenberg\WeinanlieferungBundle\Controller\Frontend\Module\WeinanlieferungSlotsListModuleController; |
12 | 13 |
|
13 | 14 |
$GLOBALS['TL_DCA']['tl_module']['palettes'][WeinanlieferungSlotsListModuleController::TYPE] = '{title_legend},name,headline,type;{wa_config_legend},vr_wa_standortId;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},cssID'; |
15 |
+$GLOBALS['TL_DCA']['tl_module']['palettes'][WeinanlieferungBookedListModuleController::TYPE] = '{title_legend},name,headline,type;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},cssID'; |
|
14 | 16 |
|
15 | 17 |
|
16 | 18 |
$GLOBALS['TL_DCA']['tl_module']['fields']['vr_wa_standortId'] = array( |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,23 @@ |
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 vonRotenberg\WeinanlieferungBundle\Controller\Frontend\Module\WeinanlieferungSlotsListModuleController; |
|
12 |
+ |
|
13 |
+$GLOBALS['TL_DCA']['tl_module']['palettes'][WeinanlieferungSlotsListModuleController::TYPE] = '{title_legend},name,headline,type;{wa_config_legend},vr_wa_standortId;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},cssID'; |
|
14 |
+ |
|
15 |
+ |
|
16 |
+$GLOBALS['TL_DCA']['tl_module']['fields']['vr_wa_standortId'] = array( |
|
17 |
+ 'exclude' => true, |
|
18 |
+ 'inputType' => 'checkbox', |
|
19 |
+ 'foreignKey' => 'tl_vr_wa_standort.title', |
|
20 |
+ 'eval' => array('mandatory' => true, 'multiple' => true,), |
|
21 |
+ 'sql' => "blob NULL", |
|
22 |
+ 'relation' => array('type' => 'hasMany', 'load' => 'lazy') |
|
23 |
+); |