From c8f4fca4fac2ce86d98e20e914795e87201c0682 Mon Sep 17 00:00:00 2001 From: hamidabbaszadeh Date: Mon, 18 May 2015 09:04:41 +0430 Subject: [PATCH] remove meta keywords --- dca/tl_catalog_product.php | 15 +++------------ modules/ModuleCatalogDetail.php | 7 +------ 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/dca/tl_catalog_product.php b/dca/tl_catalog_product.php index 46aabcc..516ec03 100644 --- a/dca/tl_catalog_product.php +++ b/dca/tl_catalog_product.php @@ -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; @@ -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, diff --git a/modules/ModuleCatalogDetail.php b/modules/ModuleCatalogDetail.php index b652a45..86011e1 100644 --- a/modules/ModuleCatalogDetail.php +++ b/modules/ModuleCatalogDetail.php @@ -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);