ECmall 2.0 SEO

2016-07-07 16:48 来源:www.chinab4c.com 作者:ecshop专家

app/
article.app.php
Search
$this->assign('page_title', $category['cate_name'] . ' - ' . Conf::get('site_title'));
To replace on
$this->assign('page_title', ' - ' . Conf::get('site_title'));
$this->assign('page_description',' - ' . Conf::get('site_description'));
$this->assign('page_keywords', Conf::get('site_keywords'));
Search
$this->assign('page_title', $article['title'] . ' - ' . Conf::get('site_title'));
To replace on
$this->assign('page_title', ' - ' . $article['title'] . ' - ' . Conf::get('site_title'));
$this->assign('page_description', ' - ' . $article['title'] . ' - ' . Conf::get('site_description'));
$this->assign('page_keywords', Conf::get('site_keywords'));


category.app.php

Search
$this->assign('page_title', Lang::get('goods_category') . ' - '. Conf::get('site_title'));
To replace on
$this->assign('page_title', '-' . Conf::get('site_title'));
$this->assign('page_description', '-' . Conf::get('site_description'));
$this->assign('page_keywords', Conf::get('site_keywords'));

Search
$this->assign('page_title', Lang::get('store_category') . ' - '. Conf::get('site_title'));
To replace on
$this->assign('page_title', '-' . Conf::get('site_title'));
$this->assign('page_description', '-' . Conf::get('site_description'));
$this->assign('page_keywords', Conf::get('site_keywords'));


goods.app.php

Search
$this->assign('page_title', $goods['goods_name'] . ' - ' . Conf::get('site_title'));

To replace on
$stripped_goods = strip_tags($goods[description]);
$stripped_goods = ereg_replace( ' ', ' ', $stripped_goods);
$stripped_goods = preg_replace('!\s{2,}!',' ',$stripped_goods);
$stripped_goods = substr($stripped_goods, 0, 200);
$this->assign('page_title', $goods['goods_name'] . ' - ' . Conf::get('site_title'));
$this->assign('page_description', $goods['goods_name'] . ' - ' . $stripped_goods);
$this->assign('page_keywords', $goods['goods_name']);


search.app.php
Search
$filters['keyword'] = array('key' => 'keyword', 'name' => LANG::get('keyword'), 'value' => $keyword);
Add
$description_keyword= ($keyword). '-';

Search
$filters['region_id'] = array('key' => 'region_id', 'name' => LANG::get('region'), 'value' => $region['region_name']);
Add
$description_region = ($region['region_name']. '-');
Search
$filters['price'] = array('key' => 'price', 'name' => LANG::get('price'), 'value' => price_format($min) . ' - ' . price_format($max));
Add
$description_price = (price_format($min) . ' - ' . price_format($max) . ' - ');
Search
$filters['brand'] = array('key' => 'brand', 'name' => LANG::get('brand'), 'value' => $_GET['brand']);
Add
$description_brand = ($_GET['brand']. '-');

Search
$this->_curlocal($this->_get_goods_curlocal($cate_id));

Add
$search_description = ($description_keyword . $description_brand . $description_region . $description_price);
To replace on
$this->assign('page_title', '-' .$search_description . Conf::get('site_title'));
$this->assign('page_description', '-' . $search_description . Conf::get('site_description'));
$this->assign('page_keywords', Conf::get('site_keywords'));
Search
$this->assign('page_title', Conf::get('site_title'));
To replace on
$this->assign('page_title', ' - '. Conf::get('site_title'));
$this->assign('page_description', ' - '. Conf::get('site_description'));
$this->assign('page_keywords', Conf::get('site_keywords'));


store.app.php
Search
$this->assign('page_title', $store['store_name'] . ' - ' . Conf::get('site_title'));
Add

$stripped_input = strip_tags($store[description]);
$stripped_input= ereg_replace( ' ', ' ', $stripped_input);
$stripped_input = preg_replace('!\s{2,}!',' ',$stripped_input);
$stripped_input=substr($stripped_input, 0, 200);
$this->assign('page_description', $stripped_input );
$this->assign('page_keywords', Conf::get('site_keywords'));
Search
$this->assign('page_title', Lang::get('goods_list') . ' - ' . $store['store_name']);
Add
$this->assign('page_description', $store['store_name'] . '-' . Conf::get('site_description'));
$this->assign('page_keywords', Conf::get('site_keywords'));

Search
$this->assign('page_title', $article['title'] . ' - ' . $store['store_name']);
Add
$this->assign('page_description', $article['title'] . '-' . Conf::get('site_description'));
$this->assign('page_keywords', $article['title']);

Search
$this->assign('page_title', Lang::get('credit_evaluation') . ' - ' . $store['store_name']);
Add
$this->assign('page_description', $store['store_name'] . '-' . Lang::get('credit_evaluation'));
$this->assign('page_keywords', Conf::get('site_keywords'));

themes\store\default\header.html
Search
<title>{$page_title}</title>
Add:

<meta name="description" content="{$page_description}" />
<meta name="keywords" content="{$page_keywords}" />


themes\mall\default\header.html
Search
<title>{$page_title}</title>
To replace on
<title>{$lnk.text}{$page_title}</title>
Search
<meta name="description" content="{$page_description}" />
To replace on
<meta name="description" content="{$lnk.text}{$page_description}" />


回答:
支持一下,不过不大懂seo

我不会说中国与口译员的帮助下,将尝试在页面中添加标记代码
<meta name="description"
<meta name="keywords"

不错,支持一下

不错,伪静态是关键

当顶。。。

全心支持!!!!

没看懂!!!!!!!!!!!!!

Has corrected !

谢谢了。

还好我自己略懂英文,感叹、
第一个SEARCH是不是这个?
$this->assign('page_title', $category['cate_name'] . ' - ' . Conf::get('site_title'));

貌似你的SEARCH和REPLACE ON是一样的了 。


Thanks for the help a typing error, has corrected.
印刷错误的提示下,纠正

Changes in store.app.php, goods.app.php
变化 store.app.php, goods.app.php

学习了。!! 已优化!

Changes in search.app.php
变化 search.app.php

顶 一下 好东西啊