... | ... |
@@ -22,7 +22,7 @@ $GLOBALS['TL_DCA']['tl_page']['fields']['teaserSRC'] = array |
22 | 22 |
'label' => &$GLOBALS['TL_LANG']['tl_page']['teaserSRC'], |
23 | 23 |
'exclude' => true, |
24 | 24 |
'inputType' => 'fileTree', |
25 |
- 'eval' => array('fieldType'=>'checkbox', 'multiple'=>false, 'files'=>true, 'filesOnly'=>true, 'extensions'=>'jpg,gif,png,jpeg'), |
|
25 |
+ 'eval' => array('fieldType'=>'radio', 'multiple'=>false, 'files'=>true, 'filesOnly'=>true, 'extensions'=>'jpg,gif,png,jpeg'), |
|
26 | 26 |
'sql' => 'binary(16) NULL' |
27 | 27 |
); |
28 | 28 |
|
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,57 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+/** |
|
4 |
+ * Pagelist for Contao |
|
5 |
+ * |
|
6 |
+ * Copyright (c) 2015 Benjamin Roth |
|
7 |
+ * |
|
8 |
+ * @license LGPL-3.0+ |
|
9 |
+ */ |
|
10 |
+ |
|
11 |
+/** |
|
12 |
+ * Palettes |
|
13 |
+ */ |
|
14 |
+$GLOBALS['TL_DCA']['tl_page']['palettes']['regular'] = str_replace('{meta_legend}', '{teaser_legend},teaserCssID,teaser,teaserSRC,teaserSize;{meta_legend}',$GLOBALS['TL_DCA']['tl_page']['palettes']['regular']); |
|
15 |
+ |
|
16 |
+ |
|
17 |
+/** |
|
18 |
+ * Fields |
|
19 |
+ */ |
|
20 |
+$GLOBALS['TL_DCA']['tl_page']['fields']['teaserSRC'] = array |
|
21 |
+( |
|
22 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_page']['teaserSRC'], |
|
23 |
+ 'exclude' => true, |
|
24 |
+ 'inputType' => 'fileTree', |
|
25 |
+ 'eval' => array('fieldType'=>'checkbox', 'multiple'=>false, 'files'=>true, 'filesOnly'=>true, 'extensions'=>'jpg,gif,png,jpeg'), |
|
26 |
+ 'sql' => 'binary(16) NULL' |
|
27 |
+); |
|
28 |
+ |
|
29 |
+$GLOBALS['TL_DCA']['tl_page']['fields']['teaserSize'] = array |
|
30 |
+( |
|
31 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_page']['teaserSize'], |
|
32 |
+ 'exclude' => true, |
|
33 |
+ 'inputType' => 'imageSize', |
|
34 |
+ 'options' => System::getImageSizes(), |
|
35 |
+ 'reference' => &$GLOBALS['TL_LANG']['MSC'], |
|
36 |
+ 'eval' => array('rgxp'=>'natural', 'includeBlankOption'=>true, 'nospace'=>true, 'helpwizard'=>true), |
|
37 |
+ 'sql' => "varchar(64) NOT NULL default ''" |
|
38 |
+); |
|
39 |
+ |
|
40 |
+$GLOBALS['TL_DCA']['tl_page']['fields']['teaserCssID'] = array |
|
41 |
+( |
|
42 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_page']['teaserCssID'], |
|
43 |
+ 'exclude' => true, |
|
44 |
+ 'inputType' => 'text', |
|
45 |
+ 'eval' => array('multiple'=>true, 'size'=>2), |
|
46 |
+ 'sql' => "varchar(255) NOT NULL default ''" |
|
47 |
+); |
|
48 |
+ |
|
49 |
+$GLOBALS['TL_DCA']['tl_page']['fields']['teaser'] = array |
|
50 |
+( |
|
51 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_page']['teaser'], |
|
52 |
+ 'exclude' => true, |
|
53 |
+ 'inputType' => 'textarea', |
|
54 |
+ 'search' => true, |
|
55 |
+ 'eval' => array('rte'=>'tinyMCE', 'tl_class'=>'clr'), |
|
56 |
+ 'sql' => "text NULL" |
|
57 |
+); |
|
0 | 58 |
\ No newline at end of file |