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 |
顶 一下 好东西啊 |
最近更新
常用插件
- ecshop使用手机验证码登陆
ecshop使用手机验证码登陆,这个功能很新颖,有些特殊的ecshop站点,他到...
- ecshop根据订单批量发红包
ecshop根据订单批量发红包 ,大家肯定对ecshop红包不陌生,但是对ecshop订...
- ecshop商品分类名称增加样
ecshop插件介绍:本插件可以方便在后台管理,为ecshop商品分类名称增加样...
- ecshop 手机注册验证插件
ecshop 手机注册验证插件 ,需要通过手机获短信,然后注册验证 价格:...
- ecshop中nginx实现url的重写
上几章为了让ecshop很好的在nginx上运行。我们搭配了ecshop的nginx下的工作...
ecshop热门问答
ecshop热门资料
ecshop文章分类
ecshop图片滚动
ecshop治疗
ecshop400
ecshop金莱德数码科技
ecshop素材下载
ecshop创始人密码
ecshop攻击
ecshop必填
ecshop职业道德
ecshop多语言
ecshop外包
ecshop商品相簿
ecshop晓天
ecshop商品栏目
ecshop中文繁体
ecshopGmail
免运费
nginx
ecshop无法
Askyayacps
ecshop申请免费网店
ecshop操作系统
ecshop乐淘
ecshop1000
dedecms文章数量
ecshop西城区
ecshop搜索
ecshop权利
ecshop栖霞区