分类分类
更新时间:2026-03-29 00:51:41作者:fang
随着ecshop越来越多,使用ecshop做商城的不计其数,据说这样不利于ecshop SEO,所有的ecshop的模板都差不多,如果内容相同的话,那么对搜索引擎来说,是特别不友好的,为了减少重复性内容,而且ecshop的标题也存在特别大的问题。比如标题。他就是通过标题+文章分类+商城名称组成的。为了让ecshop文章标题更加灵活。我们可以采用ecshop文章页面自定义标题。
1:首先给ecshop的文章表ecs_article增加个字段。
alter table ecs_article add column seo_title varchar(128)
2: admin/templates/article_info.htm
<tr>
<td class="narrow-label">{$lang.title}</td>
<td><input type="text" name="seo_title " size ="40" maxlength="60" value="{$article.seo_title |escape}" />{$lang.require_field}</td>
</tr>
3:admin/article.php
$sql = "INSERT INTO ".$ecs->table('article')."(title, cat_id, article_type, is_open, author, ".
"author_email, keywords, content, add_time, file_url, open_type, link, description,seo_title) ".
"VALUES ('$_POST[title]', '$_POST[article_cat]', '$_POST[article_type]', '$_POST[is_open]', ".
"'$_POST[author]', '$_POST[author_email]', '$_POST[keywords]', '$_POST[FCKeditor1]', ".
"'$add_time', '$file_url', '$open_type', '$_POST[link_url]', '$_POST[description]','$_POST[seo_title]')";
4:admin/article.php
$exc->edit("title='$_POST[title]', cat_id='$_POST[article_cat]', article_type='$_POST[article_type]', is_open='$_POST[is_open]', author='$_POST[author]', author_email='$_POST[author_email]', keywords ='$_POST[keywords]', file_url ='$file_url', open_type='$open_type', content='$_POST[FCKeditor1]', link='$_POST[link_url]', description = '$_POST[description]',seo_title='$_POST[seo_title]'", $_POST['id'])
5:article.dwt里面调用
{$article.seo_title}
以上就完成了ecshop文章页面自定义标题
相关
王道三国策略游戏380.18 MBv0.0.12026-03-28
下载刮个爽手机版休闲益智186.96 MBv1.0.282026-03-28
下载龙符天祭策略游戏756.03 Mv22026-03-28
下载入魂一番赏app网上购物106.66 Mv4.3.52026-03-28
下载童话师经营养成504.02 Mv1.1.52026-03-28
下载Bebo Cam app图像拍照264.51 Mv2.3.02026-03-28
下载纯三国官方正版策略游戏167.24 Mv0.0.12026-03-28
下载Poka Cam app图像拍照74.7 Mv1.8.02026-03-28
下载COLMO app趣味娱乐199.15 Mv2.3.5.22026-03-28
下载愤怒的小鸟变形金刚苹果版休闲游戏439.4 Mv2.39.02026-03-28
下载这也能切苹果版休闲游戏479.6 Mv21342026-03-28
下载口袋吉伊卡哇苹果手机版模拟游戏920.4 Mv2.0.02026-03-28
下载










