| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,63 @@ |
| 1 |
+<?php |
|
| 2 |
+ |
|
| 3 |
+/** |
|
| 4 |
+ * Tweaks for Contao |
|
| 5 |
+ * |
|
| 6 |
+ * Copyright (c) 2016 Benjamin Roth [http://www.esales-media.de] |
|
| 7 |
+ * |
|
| 8 |
+ * @package eSM_tweaks |
|
| 9 |
+ * @link http://www.esales-media.de |
|
| 10 |
+ * @license commercial |
|
| 11 |
+ */ |
|
| 12 |
+//$GLOBALS['TL_DCA']['tl_iso_product']['config']['onsubmit_callback'][] = array('eSM_isotope_custom\tl_iso_product','generateSearchKeywords');
|
|
| 13 |
+$GLOBALS['TL_DCA']['tl_iso_product']['palettes']['__selector__'][] = 'not_buyable'; |
|
| 14 |
+$GLOBALS['TL_DCA']['tl_iso_product']['subpalettes']['not_buyable'] = 'not_buyable_text'; |
|
| 15 |
+ |
|
| 16 |
+$GLOBALS['TL_DCA']['tl_iso_product']['fields']['attr_monthyear'] = array |
|
| 17 |
+( |
|
| 18 |
+ 'exclude' => true, |
|
| 19 |
+ 'inputType' => 'select', |
|
| 20 |
+ 'eval' => array('mandatory'=>false, 'tl_class'=>'w50','disabled'=>true,'includeBlankOption'=>true),
|
|
| 21 |
+ 'attributes' => array( |
|
| 22 |
+ 'legend' => 'options_legend', |
|
| 23 |
+ 'fe_filter'=>true, |
|
| 24 |
+ 'fixed'=>true, |
|
| 25 |
+ 'variant_fixed'=>true, |
|
| 26 |
+ 'systemColumn'=>true, |
|
| 27 |
+// 'type' => 'select', |
|
| 28 |
+ 'optionsSource' => 'foreignKey', |
|
| 29 |
+ 'foreignKey' => 'tl_iso_product_month.month', |
|
| 30 |
+ ), |
|
| 31 |
+ 'foreignKey' => 'tl_iso_product_month.month', |
|
| 32 |
+ 'sql' => "int(10) NOT NULL default 0" |
|
| 33 |
+); |
|
| 34 |
+ |
|
| 35 |
+/*$GLOBALS['TL_DCA']['tl_iso_product']['fields']['search_keywords'] = array |
|
| 36 |
+( |
|
| 37 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_iso_product']['search_keywords'], |
|
| 38 |
+ 'exclude' => true, |
|
| 39 |
+ 'inputType' => 'text', |
|
| 40 |
+ 'eval' => array('mandatory'=>false, 'tl_class'=>'w50','readonly'=>true),
|
|
| 41 |
+ 'attributes' => array('legend'=>'meta_legend', 'fe_search'=>true, 'fixed'=>true, 'variant_fixed'=>true, 'systemColumn'=>true),
|
|
| 42 |
+ 'sql' => "varchar(1055) NOT NULL default ''" |
|
| 43 |
+);*/ |
|
| 44 |
+ |
|
| 45 |
+$GLOBALS['TL_DCA']['tl_iso_product']['fields']['not_buyable'] = array |
|
| 46 |
+( |
|
| 47 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_iso_product']['not_buyable'], |
|
| 48 |
+ 'exclude' => true, |
|
| 49 |
+ 'filter' => true, |
|
| 50 |
+ 'inputType' => 'checkbox', |
|
| 51 |
+ 'eval' => array('tl_class'=>'w50 m12 clr','submitOnChange'=>true),
|
|
| 52 |
+ 'attributes' => array('legend'=>'publish_legend', 'fixed'=>true, 'variant_fixed'=>true, 'systemColumn'=>true),
|
|
| 53 |
+ 'sql' => "char(1) NOT NULL default ''", |
|
| 54 |
+); |
|
| 55 |
+ |
|
| 56 |
+$GLOBALS['TL_DCA']['tl_iso_product']['fields']['not_buyable_text'] = array |
|
| 57 |
+( |
|
| 58 |
+ 'label' => &$GLOBALS['TL_LANG']['tl_iso_product']['not_buyable_text'], |
|
| 59 |
+ 'exclude' => true, |
|
| 60 |
+ 'inputType' => 'text', |
|
| 61 |
+ 'eval' => array('maxlength'=>255,'tl_class'=>'w50'),
|
|
| 62 |
+ 'sql' => "varchar(255) NOT NULL default ''", |
|
| 63 |
+); |