Skip to content

Commit

Permalink
change catalog_template to product_template
Browse files Browse the repository at this point in the history
  • Loading branch information
hamidpeywasti committed Dec 4, 2014
1 parent a0f98e9 commit f0340e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions dca/tl_module.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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 ''"
);
Expand Down Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion modules/ModuleCatalog.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f0340e6

Please sign in to comment.