Skip to content

Commit

Permalink
remove meta keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
hamidpeywasti committed May 18, 2015
1 parent 46730a4 commit c8f4fca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
15 changes: 3 additions & 12 deletions dca/tl_catalog_product.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
(
'__selector__' => array('type','addEnclosure','published'),
'default' => '{type_legend},type;{title_legend},title,alias,model;{config_legend:hide},featured,date;
{image_legend},singleSRC;{meta_legend},metaDescription,metaKeywords;
{image_legend},singleSRC;{meta_legend},description;
{related_legend},related;{enclosure_legend:hide},addEnclosure;
{publish_legend},published',
'other' => '{type_legend},type,mainID;{title_legend},title,alias,model;{config_legend:hide},featured,date;
Expand Down Expand Up @@ -237,18 +237,9 @@
'eval' => array('rgxp'=>'date', 'doNotCopy'=>true, 'datepicker'=>true, 'tl_class'=>'w50 wizard'),
'sql' => "int(10) unsigned NOT NULL default '0'"
),
'metaKeywords' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_catalog_product']['metaKeywords'],
'exclude' => true,
'inputType' => 'textarea',
'search' => true,
'eval' => array('style'=>'height:60px', 'decodeEntities'=>true),
'sql' => "text NULL"
),
'metaDescription' => array
'description' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_catalog_product']['metaDescription'],
'label' => &$GLOBALS['TL_LANG']['tl_catalog_product']['description'],
'exclude' => true,
'inputType' => 'textarea',
'search' => true,
Expand Down
7 changes: 1 addition & 6 deletions modules/ModuleCatalogDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,7 @@ protected function compile()
// Overwrite the page description
if ($objProduct->description != '')
{
$objPage->description = $this->prepareMetaDescription($objProduct->metaDescription);
}

if ($objProduct->keywords != '')
{
$GLOBALS['TL_KEYWORDS'] .= (($GLOBALS['TL_KEYWORDS'] != '') ? ', ' : '') . $objProduct->metaKeywords;
$objPage->description = $this->prepareMetaDescription($objProduct->description);
}

$arrProduct = $this->parseProduct($objProduct);
Expand Down

0 comments on commit c8f4fca

Please sign in to comment.