| ... | ... |
@@ -23,7 +23,7 @@ $GLOBALS['TL_DCA']['tl_module']['fields']['eSM_team_group'] = array |
| 23 | 23 |
'label' => &$GLOBALS['TL_LANG']['tl_module']['eSM_team_group'], |
| 24 | 24 |
'exclude' => true, |
| 25 | 25 |
'inputType' => 'select', |
| 26 |
- 'foreignKey' => 'tl_eSM_team_group.title', |
|
| 26 |
+ 'foreignKey' => 'tl_esm_team_group.title', |
|
| 27 | 27 |
'eval' => array('mandatory'=>true,'includeBlankOption'=>true),
|
| 28 | 28 |
'sql' => "int(10) unsigned NOT NULL default '0'" |
| 29 | 29 |
); |
| ... | ... |
@@ -37,4 +37,4 @@ $GLOBALS['TL_DCA']['tl_module']['fields']['eSM_team_divisions'] = array |
| 37 | 37 |
'reference' => &$GLOBALS['TL_LANG']['REF']['divisions'], |
| 38 | 38 |
'eval' => array('mandatory'=>true, 'multiple'=>true),
|
| 39 | 39 |
'sql' => "blob NULL" |
| 40 |
-); |
|
| 41 | 40 |
\ No newline at end of file |
| 41 |
+); |
| ... | ... |
@@ -8,7 +8,15 @@ |
| 8 | 8 |
* @license LGPL-3.0+ |
| 9 | 9 |
*/ |
| 10 | 10 |
|
| 11 |
-$GLOBALS['TL_DCA']['tl_module']['palettes']['teamlist'] = '{title_legend},name,headline,type;{team_legend},eSM_team_group,eSM_team_divisions;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space';
|
|
| 11 |
+$GLOBALS['TL_DCA']['tl_module']['palettes']['team_list'] = ' |
|
| 12 |
+ {title_legend},name,headline,type;
|
|
| 13 |
+ {team_legend},eSM_team_group,eSM_team_divisions;
|
|
| 14 |
+ {image_legend},imgSize;
|
|
| 15 |
+ {template_legend:hide},customTpl;
|
|
| 16 |
+ {protected_legend:hide},protected;
|
|
| 17 |
+ {expert_legend:hide},guests,cssID
|
|
| 18 |
+'; |
|
| 19 |
+ |
|
| 12 | 20 |
|
| 13 | 21 |
$GLOBALS['TL_DCA']['tl_module']['fields']['eSM_team_group'] = array |
| 14 | 22 |
( |
| ... | ... |
@@ -29,11 +37,4 @@ $GLOBALS['TL_DCA']['tl_module']['fields']['eSM_team_divisions'] = array |
| 29 | 37 |
'reference' => &$GLOBALS['TL_LANG']['REF']['divisions'], |
| 30 | 38 |
'eval' => array('mandatory'=>true, 'multiple'=>true),
|
| 31 | 39 |
'sql' => "blob NULL" |
| 32 |
-); |
|
| 33 |
- |
|
| 34 |
-$GLOBALS['TL_DCA']['tl_module']['palettes']['team_list'] = ' |
|
| 35 |
- {title_legend},name,headline,type;
|
|
| 36 |
- {template_legend:hide},customTpl;
|
|
| 37 |
- {protected_legend:hide},protected;
|
|
| 38 |
- {expert_legend:hide},guests,cssID
|
|
| 39 |
-'; |
|
| 40 |
+); |
|
| 40 | 41 |
\ No newline at end of file |
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,39 @@ |
| 1 |
+<?php |
|
| 2 |
+ |
|
| 3 |
+/** |
|
| 4 |
+* TeamList for Contao |
|
| 5 |
+* |
|
| 6 |
+* Copyright (c) 2016 Benjamin Roth |
|
| 7 |
+* |
|
| 8 |
+* @license LGPL-3.0+ |
|
| 9 |
+*/ |
|
| 10 |
+ |
|
| 11 |
+$GLOBALS['TL_DCA']['tl_module']['palettes']['teamlist'] = '{title_legend},name,headline,type;{team_legend},eSM_team_group,eSM_team_divisions;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space';
|
|
| 12 |
+ |
|
| 13 |
+$GLOBALS['TL_DCA']['tl_module']['fields']['eSM_team_group'] = array |
|
| 14 |
+( |
|
| 15 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_module']['eSM_team_group'], |
|
| 16 |
+ 'exclude' => true, |
|
| 17 |
+ 'inputType' => 'select', |
|
| 18 |
+ 'foreignKey' => 'tl_eSM_team_group.title', |
|
| 19 |
+ 'eval' => array('mandatory'=>true,'includeBlankOption'=>true),
|
|
| 20 |
+ 'sql' => "int(10) unsigned NOT NULL default '0'" |
|
| 21 |
+); |
|
| 22 |
+ |
|
| 23 |
+$GLOBALS['TL_DCA']['tl_module']['fields']['eSM_team_divisions'] = array |
|
| 24 |
+( |
|
| 25 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_module']['eSM_team_divisions'], |
|
| 26 |
+ 'exclude' => true, |
|
| 27 |
+ 'inputType' => 'checkboxWizard', |
|
| 28 |
+ 'options' => $GLOBALS['eSM_team']['divisions'], |
|
| 29 |
+ 'reference' => &$GLOBALS['TL_LANG']['REF']['divisions'], |
|
| 30 |
+ 'eval' => array('mandatory'=>true, 'multiple'=>true),
|
|
| 31 |
+ 'sql' => "blob NULL" |
|
| 32 |
+); |
|
| 33 |
+ |
|
| 34 |
+$GLOBALS['TL_DCA']['tl_module']['palettes']['team_list'] = ' |
|
| 35 |
+ {title_legend},name,headline,type;
|
|
| 36 |
+ {template_legend:hide},customTpl;
|
|
| 37 |
+ {protected_legend:hide},protected;
|
|
| 38 |
+ {expert_legend:hide},guests,cssID
|
|
| 39 |
+'; |