1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,39 +0,0 @@ |
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 |
-$str_replace = ',teaser,teaserSRC,teaserSize'; |
|
15 |
-$GLOBALS['TL_DCA']['tl_article']['palettes']['default'] = str_replace(array(',teaser,',',teaser;'), array($str_replace.',',$str_replace.';'),$GLOBALS['TL_DCA']['tl_article']['palettes']['default']); |
|
16 |
- |
|
17 |
- |
|
18 |
-/** |
|
19 |
- * Fields |
|
20 |
- */ |
|
21 |
-$GLOBALS['TL_DCA']['tl_article']['fields']['teaserSRC'] = array |
|
22 |
-( |
|
23 |
- 'label' => &$GLOBALS['TL_LANG']['tl_article']['teaserSRC'], |
|
24 |
- 'exclude' => true, |
|
25 |
- 'inputType' => 'fileTree', |
|
26 |
- 'eval' => array('fieldType'=>'checkbox', 'multiple'=>false, 'files'=>true, 'filesOnly'=>true, 'extensions'=>'jpg,gif,png,jpeg'), |
|
27 |
- 'sql' => 'binary(16) NULL' |
|
28 |
-); |
|
29 |
- |
|
30 |
-$GLOBALS['TL_DCA']['tl_article']['fields']['teaserSize'] = array |
|
31 |
-( |
|
32 |
- 'label' => &$GLOBALS['TL_LANG']['tl_article']['teaserSize'], |
|
33 |
- 'exclude' => true, |
|
34 |
- 'inputType' => 'imageSize', |
|
35 |
- 'options' => System::getImageSizes(), |
|
36 |
- 'reference' => &$GLOBALS['TL_LANG']['MSC'], |
|
37 |
- 'eval' => array('rgxp'=>'natural', 'includeBlankOption'=>true, 'nospace'=>true, 'helpwizard'=>true), |
|
38 |
- 'sql' => "varchar(64) NOT NULL default ''" |
|
39 |
-); |
|
40 | 0 |
\ No newline at end of file |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,39 @@ |
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 |
+$str_replace = ',teaser,teaserSRC,teaserSize'; |
|
15 |
+$GLOBALS['TL_DCA']['tl_article']['palettes']['default'] = str_replace(array(',teaser,',',teaser;'), array($str_replace.',',$str_replace.';'),$GLOBALS['TL_DCA']['tl_article']['palettes']['default']); |
|
16 |
+ |
|
17 |
+ |
|
18 |
+/** |
|
19 |
+ * Fields |
|
20 |
+ */ |
|
21 |
+$GLOBALS['TL_DCA']['tl_article']['fields']['teaserSRC'] = array |
|
22 |
+( |
|
23 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_article']['teaserSRC'], |
|
24 |
+ 'exclude' => true, |
|
25 |
+ 'inputType' => 'fileTree', |
|
26 |
+ 'eval' => array('fieldType'=>'checkbox', 'multiple'=>false, 'files'=>true, 'filesOnly'=>true, 'extensions'=>'jpg,gif,png,jpeg'), |
|
27 |
+ 'sql' => 'binary(16) NULL' |
|
28 |
+); |
|
29 |
+ |
|
30 |
+$GLOBALS['TL_DCA']['tl_article']['fields']['teaserSize'] = array |
|
31 |
+( |
|
32 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_article']['teaserSize'], |
|
33 |
+ 'exclude' => true, |
|
34 |
+ 'inputType' => 'imageSize', |
|
35 |
+ 'options' => System::getImageSizes(), |
|
36 |
+ 'reference' => &$GLOBALS['TL_LANG']['MSC'], |
|
37 |
+ 'eval' => array('rgxp'=>'natural', 'includeBlankOption'=>true, 'nospace'=>true, 'helpwizard'=>true), |
|
38 |
+ 'sql' => "varchar(64) NOT NULL default ''" |
|
39 |
+); |
|
0 | 40 |
\ No newline at end of file |