1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,58 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+/** |
|
4 |
+ * eSales Media One-Page toolkit for Contao Open Source CMS |
|
5 |
+ * |
|
6 |
+ * Copyright (C) 2015 eSales Media |
|
7 |
+ * |
|
8 |
+ * @package eSM_onePage |
|
9 |
+ * @link http://www.esales-media.de |
|
10 |
+ * @license commercial |
|
11 |
+ * |
|
12 |
+ * @author Benjamin Roth <benjamin@esales-media.de> |
|
13 |
+ */ |
|
14 |
+ |
|
15 |
+/** |
|
16 |
+ * Table tl_content |
|
17 |
+ */ |
|
18 |
+/** |
|
19 |
+ * Add palettes to tl_content |
|
20 |
+ */ |
|
21 |
+$GLOBALS['TL_DCA']['tl_content']['palettes']['onepageStart'] = '{type_legend},type;{onepage_legend},eSM_op_valign,eSM_op_theme,eSM_op_scrollIndicator;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID,space;{invisible_legend:hide},invisible,start,stop'; |
|
22 |
+$GLOBALS['TL_DCA']['tl_content']['palettes']['onepageStop'] = '{type_legend},type;{onepage_legend},eSM_op_scrollIndicator;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests;{invisible_legend:hide},invisible,start,stop'; |
|
23 |
+ |
|
24 |
+ |
|
25 |
+/** |
|
26 |
+ * Add fields to tl_content |
|
27 |
+ */ |
|
28 |
+ |
|
29 |
+$GLOBALS['TL_DCA']['tl_content']['fields']['eSM_op_theme'] = array |
|
30 |
+( |
|
31 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_content']['eSM_op_theme'], |
|
32 |
+ 'exclude' => true, |
|
33 |
+ 'inputType' => 'select', |
|
34 |
+ 'options' => array('theme-1','theme-2','theme-3','theme-4','theme-5'), |
|
35 |
+ 'eval' => array('tl_class'=>'w50','includeBlankOption'=>true), |
|
36 |
+ 'sql' => "varchar(32) NOT NULL default ''" |
|
37 |
+); |
|
38 |
+ |
|
39 |
+$GLOBALS['TL_DCA']['tl_content']['fields']['eSM_op_valign'] = array |
|
40 |
+( |
|
41 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_content']['eSM_op_valign'], |
|
42 |
+ 'exclude' => true, |
|
43 |
+ 'inputType' => 'select', |
|
44 |
+ 'default' => 'top', |
|
45 |
+ 'options' => array('top','center','bottom'), |
|
46 |
+ 'reference' => $GLOBALS['TL_LANG']['REF']['onepage'], |
|
47 |
+ 'eval' => array('tl_class'=>'w50'), |
|
48 |
+ 'sql' => "varchar(32) NOT NULL default ''" |
|
49 |
+); |
|
50 |
+ |
|
51 |
+$GLOBALS['TL_DCA']['tl_content']['fields']['eSM_op_scrollIndicator'] = array |
|
52 |
+( |
|
53 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_content']['eSM_op_scrollIndicator'], |
|
54 |
+ 'exclude' => true, |
|
55 |
+ 'inputType' => 'checkbox', |
|
56 |
+ 'eval' => array('tl_class'=>'clr'), |
|
57 |
+ 'sql' => "char(1) NOT NULL default ''" |
|
58 |
+); |