diff --git a/dca/tl_module.php b/dca/tl_module.php index 91c71c0..a9e16a1 100644 --- a/dca/tl_module.php +++ b/dca/tl_module.php @@ -33,7 +33,7 @@ {catalog_legend},catalog_categories; {config_legend},numberOfItems; {redirect_legend},jumpTo; - {template_legend:hide},catalog_metaFields,catalog_template,customTpl; + {template_legend:hide},catalog_metaFields,product_template,customTpl; {image_legend},imgSize; {protected_legend:hide},protected; {expert_legend:hide},guests,cssID,space'; @@ -50,12 +50,12 @@ 'eval' => array('multiple'=>true, 'mandatory'=>true), 'sql' => "blob NULL" ); -$GLOBALS['TL_DCA']['tl_module']['fields']['catalog_template'] = array +$GLOBALS['TL_DCA']['tl_module']['fields']['product_template'] = array ( - 'label' => &$GLOBALS['TL_LANG']['tl_module']['catalog_template'], + 'label' => &$GLOBALS['TL_LANG']['tl_module']['product_template'], 'exclude' => true, 'inputType' => 'select', - 'options_callback' => array('tl_module_catalog', 'getCatalogTemplates'), + 'options_callback' => array('tl_module_catalog', 'getProducTemplates'), 'eval' => array('tl_class'=>'w50'), 'sql' => "varchar(64) NOT NULL default ''" ); @@ -160,7 +160,7 @@ public function getCategories() * @param object * @return array */ - public function getCatalogTemplates(DataContainer $dc) + public function getProducTemplates(DataContainer $dc) { return $this->getTemplateGroup('product_', $dc->activeRecord->pid); } diff --git a/modules/ModuleCatalog.php b/modules/ModuleCatalog.php index c530b83..f490933 100644 --- a/modules/ModuleCatalog.php +++ b/modules/ModuleCatalog.php @@ -90,7 +90,7 @@ protected function parseProduct($objProduct, $blnAddCategory=false, $strClass='' { global $objPage; - $objTemplate = new \FrontendTemplate($this->catalog_template); + $objTemplate = new \FrontendTemplate($this->product_template); $objTemplate->setData($objProduct->row()); $objTemplate->class = (($this->product_Class != '') ? ' ' . $this->product_Class : '') . $strClass;