From c0d547c0cc06f40ce014967801f9e53231bc100a Mon Sep 17 00:00:00 2001 From: hamidabbaszadeh Date: Thu, 4 Dec 2014 23:51:14 +0330 Subject: [PATCH] change catalog_template to product_template --- dca/tl_module.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dca/tl_module.php b/dca/tl_module.php index a9e16a1..c64bbb6 100644 --- a/dca/tl_module.php +++ b/dca/tl_module.php @@ -18,13 +18,13 @@ $GLOBALS['TL_DCA']['tl_module']['palettes']['catalog_list'] = '{title_legend},name,headline,type; {catalog_legend},catalog_categories; {config_legend},catalog_featured,catalog_detailModule,numberOfItems,perPage,skipFirst; - {template_legend},catalog_metaFields,catalog_template,customTpl; + {template_legend},catalog_metaFields,product_template,customTpl; {product_legend},product_Class,imgSize; {protected_legend:hide},protected; {expert_legend:hide},guests,cssID,space'; $GLOBALS['TL_DCA']['tl_module']['palettes']['catalog_detail'] = '{title_legend},name,headline,type; {catalog_legend},catalog_categories; - {template_legend},catalog_metaFields,catalog_template,customTpl; + {template_legend},catalog_metaFields,product_template,customTpl; {image_legend},imgSize; {type_legend},type_Class,type_ImageSize; {protected_legend:hide},protected; @@ -55,7 +55,7 @@ 'label' => &$GLOBALS['TL_LANG']['tl_module']['product_template'], 'exclude' => true, 'inputType' => 'select', - 'options_callback' => array('tl_module_catalog', 'getProducTemplates'), + 'options_callback' => array('tl_module_catalog', 'getProductTemplates'), 'eval' => array('tl_class'=>'w50'), 'sql' => "varchar(64) NOT NULL default ''" ); @@ -160,7 +160,7 @@ public function getCategories() * @param object * @return array */ - public function getProducTemplates(DataContainer $dc) + public function getProductTemplates(DataContainer $dc) { return $this->getTemplateGroup('product_', $dc->activeRecord->pid); }