1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,31 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+/** |
|
4 |
+ * Tweaks for Contao |
|
5 |
+ * |
|
6 |
+ * Copyright (c) 2014 Benjamin Roth [http://www.esales-media.de] |
|
7 |
+ * |
|
8 |
+ * @package eSM_tweaks |
|
9 |
+ * @link http://www.esales-media.de |
|
10 |
+ * @license commercial |
|
11 |
+ */ |
|
12 |
+ |
|
13 |
+ |
|
14 |
+foreach ($GLOBALS['TL_DCA']['tl_content']['palettes'] as $key => $palette) |
|
15 |
+{ |
|
16 |
+ $GLOBALS['TL_DCA']['tl_content']['palettes'][$key] = str_replace(';{invisible_legend', ',es_iso_hide_list;{invisible_legend', $palette); |
|
17 |
+} |
|
18 |
+ |
|
19 |
+/** |
|
20 |
+ * Add fields to tl_content |
|
21 |
+ */ |
|
22 |
+ |
|
23 |
+$GLOBALS['TL_DCA']['tl_content']['fields']['es_iso_hide_list'] = array |
|
24 |
+( |
|
25 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_content']['es_iso_hide_list'], |
|
26 |
+ 'exclude' => true, |
|
27 |
+ 'inputType' => 'checkbox', |
|
28 |
+ 'eval' => array('tl_class'=>'w50 m12'), |
|
29 |
+ 'sql' => "char(1) NOT NULL default ''" |
|
30 |
+); |
|
31 |
+ |