機能要望 > 管理機能 > 商品詳細 Description SEO |
管理機能
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | 下へ |
投稿者 | スレッド |
---|---|
ゲスト |
投稿日時: 2008/2/1 11:38
対応状況: −−−
|
商品詳細 Description SEO /data/Smarty/templates/site_frame.tpl の<title>タグと、<description>タグと、<keyword>タグを以下と置き換えた時
商品詳細ページの場合 <title>商品名 | ショップ名</title> <description>商品登録の「一覧-メインコメント」</description> <keyword>商品登録の「検索ワード」 </keyword> となるはずですが HPの商品詳細ページのソースを見ると<description>が空になっています。 どうすればよいでしょうか? EC-CUBEバージョン 1.3.4 PHPバージョン PHP 4.4.7 DBバージョン MySQL 4.1.18 です。よろしくお願い致します。 <!--{assign var=top value="`$smarty.const.URL_DIR`index.php"}--> <!--{assign var=list value="`$smarty.const.URL_DIR`products/list.php"}--> <!--{assign var=detail value="`$smarty.const.URL_DIR`products/detail.php"}--> <!--トップページ--> <!--{if $smarty.server.PHP_SELF==$top}--> <title><!--{$arrSiteInfo.shop_name}--> | <!--{$arrPageLayout.description|escape}--></title> <meta name="description" content="<!--{$arrPageLayout.description|escape}-->" /> <meta name="keywords" content="<!--{$arrPageLayout.keyword|escape}-->" /> <!--商品一覧ページ--> <!--{elseif $smarty.server.PHP_SELF==$list}--> <!--{if $tpl_subtitle != "全商品"}--> <title><!--{$tpl_subtitle}--> | <!--{$arrSiteInfo.shop_name}--></title> <!--{else}--> <title><!--{$arrPageLayout.description|escape}--> | <!--{$arrSiteInfo.shop_name}--></title> <!--{/if}--> <meta name="description" content="<!--{$arrPageLayout.description|escape}-->" /> <meta name="keywords" content="<!--{$arrPageLayout.keyword|escape}-->" /> <!--商品詳細ページ--> <!--{elseif $smarty.server.PHP_SELF==$detail}--> <title><!--{$tpl_title|escape}--> | <!--{$arrSiteInfo.shop_name}--></title> <meta name="description" content="<!--{$arrProduct.main_list_comment|escape|regex_replace:"/[\r\t\n]/":""}-->" /> <meta name="keywords" content="<!--{if $arrProduct.comment3}--><!--{$arrProduct.comment3|escape|regex_replace:"/[\r\t\n]/":""|regex_replace:"/、/":","}--><!--{/if}-->" /> <!--その他の場合--> <!--{else}--> <title><!--{$tpl_title|escape}--> | <!--{$arrSiteInfo.shop_name}--></title> <meta name="description" content="<!--{$arrPageLayout.description|escape}-->" /> <meta name="keywords" content="<!--{$arrPageLayout.keyword|escape}-->" /> <!--{/if}--> |
|
lumines |
投稿日時: 2008/2/9 23:08
対応状況: −−−
|
常連 登録日: 2007/4/27 居住地: 新潟 投稿: 39 |
Re: 商品詳細 Description SEO こんばんは。上記のソースはhoman様のSEO対策カスタマイズではないでしょうか。
私もバージョンを1.4.6に上げたところ、表示されなくなったので、data/conf/conf.phpの最後あたり "vw_products_allclass_detail" => ' のSELECTに main_list_comment を追加したところ、main_list_comment を呼び出せるようになりました。 正しい方法かはわかりませんが、ご参考までに。
|
homan |
投稿日時: 2008/2/10 9:16
対応状況: −−−
|
仙人 登録日: 2007/7/2 居住地: 宮崎県宮崎市 投稿: 633 |
Re: 商品詳細 Description SEO おはようございます!
これ、たしかに僕が紹介しているものです。 lumines様がおっしゃるように、vw_products_allclass_detail に main_list_comment を追記する必要がありますね。 ブログの記事の方には説明が抜けていましたので、 追記させて頂きます。ありがとうございます
|
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | トップ |