... | ... |
@@ -18,6 +18,7 @@ |
18 | 18 |
*/ |
19 | 19 |
$GLOBALS['TL_DCA']['tl_module']['palettes']['clientsShowcase'] = '{title_legend},name,headline,type;{config_legend},esm_numberOfItems,perPage;{reference_legend},jumpTo;{template_legend:hide},customTpl,esm_clientsShowcase_template;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space'; |
20 | 20 |
$GLOBALS['TL_DCA']['tl_module']['palettes']['clientsProject'] = '{title_legend},name,headline,type;{image_legend},imgSize,fullsize;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space'; |
21 |
+$GLOBALS['TL_DCA']['tl_module']['palettes']['clientsProjectDevices'] = '{title_legend},name,headline,type;{devices_legend},esm_clients_devices;{settings_legend},esm_clients_devices_dimensions;{template_legend:hide},customTpl,esm_clients_devices_template;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space'; |
|
21 | 22 |
|
22 | 23 |
|
23 | 24 |
/** |
... | ... |
@@ -42,4 +43,37 @@ $GLOBALS['TL_DCA']['tl_module']['fields']['esm_clientsShowcase_template'] = arra |
42 | 43 |
'options_callback' => array('tl_module_esm_clients', 'getClientsShowcaseTemplates'), |
43 | 44 |
'eval' => array('tl_class'=>'w50'), |
44 | 45 |
'sql' => "varchar(32) NOT NULL default ''" |
46 |
+); |
|
47 |
+ |
|
48 |
+$GLOBALS['TL_DCA']['tl_module']['fields']['esm_clients_devices_template'] = array |
|
49 |
+( |
|
50 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_module']['esm_clients_devices_template'], |
|
51 |
+ 'default' => '_project_devices_default', |
|
52 |
+ 'exclude' => true, |
|
53 |
+ 'inputType' => 'select', |
|
54 |
+ 'options_callback' => array('tl_module_esm_clients', 'getProjectDevicesTemplates'), |
|
55 |
+ 'eval' => array('tl_class'=>'w50'), |
|
56 |
+ 'sql' => "varchar(32) NOT NULL default ''" |
|
57 |
+); |
|
58 |
+ |
|
59 |
+$GLOBALS['TL_DCA']['tl_module']['fields']['esm_clients_devices'] = array |
|
60 |
+( |
|
61 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_module']['esm_clients_devices'], |
|
62 |
+ 'exclude' => true, |
|
63 |
+ 'inputType' => 'checkbox', |
|
64 |
+ 'options' => array('desktop','smartphone','tablet'), |
|
65 |
+ 'reference' => &$GLOBALS['TL_LANG']['ESM_CLIENTS']['REF']['devices'], |
|
66 |
+ 'eval' => array('mandatory'=>true, 'multiple'=>true), |
|
67 |
+ 'sql' => "varchar(128) NOT NULL default ''" |
|
68 |
+); |
|
69 |
+ |
|
70 |
+$GLOBALS['TL_DCA']['tl_module']['fields']['esm_clients_devices_dimensions'] = array |
|
71 |
+( |
|
72 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_module']['esm_clients_devices_dimensions'], |
|
73 |
+ 'exclude' => true, |
|
74 |
+ 'inputType' => 'imageSize', |
|
75 |
+ 'options' => array('proportional'), |
|
76 |
+ 'reference' => &$GLOBALS['TL_LANG']['MSC'], |
|
77 |
+ 'eval' => array('rgxp'=>'natural', 'includeBlankOption'=>true, 'nospace'=>true, 'tl_class'=>'w50'), |
|
78 |
+ 'sql' => "varchar(64) NOT NULL default ''" |
|
45 | 79 |
); |
46 | 80 |
\ No newline at end of file |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,45 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+/** |
|
4 |
+ * References for Contao |
|
5 |
+ * |
|
6 |
+ * Copyright (c) 2014 Benjamin Roth [http://www.esales-media.de] |
|
7 |
+ * |
|
8 |
+ * @package eSM_clients |
|
9 |
+ * @link http://www.esales-media.de |
|
10 |
+ * @license commercial |
|
11 |
+ */ |
|
12 |
+ |
|
13 |
+/** |
|
14 |
+ * Table tl_module |
|
15 |
+ */ |
|
16 |
+/** |
|
17 |
+ * Add palettes to tl_module |
|
18 |
+ */ |
|
19 |
+$GLOBALS['TL_DCA']['tl_module']['palettes']['clientsShowcase'] = '{title_legend},name,headline,type;{config_legend},esm_numberOfItems,perPage;{reference_legend},jumpTo;{template_legend:hide},customTpl,esm_clientsShowcase_template;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space'; |
|
20 |
+$GLOBALS['TL_DCA']['tl_module']['palettes']['clientsProject'] = '{title_legend},name,headline,type;{image_legend},imgSize,fullsize;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space'; |
|
21 |
+ |
|
22 |
+ |
|
23 |
+/** |
|
24 |
+ * Add fields to tl_module |
|
25 |
+ */ |
|
26 |
+$GLOBALS['TL_DCA']['tl_module']['fields']['esm_numberOfItems'] = array |
|
27 |
+( |
|
28 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_module']['esm_numberOfItems'], |
|
29 |
+ 'default' => 0, |
|
30 |
+ 'exclude' => true, |
|
31 |
+ 'inputType' => 'text', |
|
32 |
+ 'eval' => array('mandatory'=>true, 'rgxp'=>'natural', 'tl_class'=>'w50'), |
|
33 |
+ 'sql' => "smallint(5) unsigned NOT NULL default '0'" |
|
34 |
+); |
|
35 |
+ |
|
36 |
+$GLOBALS['TL_DCA']['tl_module']['fields']['esm_clientsShowcase_template'] = array |
|
37 |
+( |
|
38 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_module']['esm_clientsShowcase_template'], |
|
39 |
+ 'default' => '_clientsShowcase_default', |
|
40 |
+ 'exclude' => true, |
|
41 |
+ 'inputType' => 'select', |
|
42 |
+ 'options_callback' => array('tl_module_esm_clients', 'getClientsShowcaseTemplates'), |
|
43 |
+ 'eval' => array('tl_class'=>'w50'), |
|
44 |
+ 'sql' => "varchar(32) NOT NULL default ''" |
|
45 |
+); |
|
0 | 46 |
\ No newline at end of file |