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 f0340e6 commit c0d547c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dca/tl_module.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 ''"
);
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit c0d547c

Please sign in to comment.