后台一共需要修改下面的四个文件,假设根目录ecshop/
.../ecshop/admin/template.php
..../ecshop/admin/includes/lib_template.php
.../ecshop/languages/zh_cn/admin/template.php
.../ecshop/themes/default/libs.xml
1、
见下面的
2
追加如下内容
$_LANG['template_files']['help'] ='
3
![[转]在ecshop中添加页面,并且实现后台管理](http://hi.youkuaiyun.com/attachment/201007/10/0_12787740829R11.gif)
4
C:/ProgramFiles/ShopEx/shop/docroot/ecshop/admin/includes/lib_template.php
将
修改成
5
C:/ProgramFiles/ShopEx/shop/docroot/ecshop/admin/includes/lib_template.php
在
![[转]在ecshop中添加页面,并且实现后台管理](http://hi.youkuaiyun.com/attachment/201007/10/0_1278774124Y12l.gif)
6
C:/ProgramFiles/ShopEx/shop/docroot/ecshop/themes/default/libs.xml
加入下面代码,这些区域就变成可指定的了,以外的部分就不能被设定。如果不在这个文件中加入任何信息,所有的项目都是可编辑的
![[转]在ecshop中添加页面,并且实现后台管理](http://hi.youkuaiyun.com/attachment/201007/10/0_1278774097kFxH.gif)
7
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type"content="text/html; charset=utf-8" />
<!-- TemplateBeginEditable name="doctitle"-->
<title>{$page_title}</title>
<!-- TemplateEndEditable--><!-- TemplateBeginEditablename="head" --><!--TemplateEndEditable -->
<meta name="Keywords" content="{$keywords}"/>
<meta name="Description"content="{$description}" />
<link rel="shortcut icon" href="favicon.ico"/>
<link rel="icon" href="animated_favicon.gif"type="image/gif" />
<link href="{$ecs_css_path}"rel="stylesheet" type="text/css" />
</head>
<body>
<!-- #BeginLibraryItem"/library/page_header.lbi" --><!--#EndLibraryItem -->
<!-- #BeginLibraryItem"/library/page_footer.lbi" --><!--#EndLibraryItem -->
</body>
</html>
红色背景部分是可编辑区域,如下图
![[转]在ecshop中添加页面,并且实现后台管理](http://hi.youkuaiyun.com/attachment/201007/14/0_12791092254bWP.gif)
8
<?php
define('IN_ECS', true);
require(dirname(__FILE__) .'/includes/init.php');
assign_template('c', array($cat_id));
$position= assign_ur_here(0,'asdfasdfaadsfasd');
$smarty->assign('ur_here',
$smarty->display('help.dwt');
?>
9
![[转]在ecshop中添加页面,并且实现后台管理 最终效果](http://hi.youkuaiyun.com/attachment/201007/10/0_127877413720g8.gif)
本文详细介绍了如何在ECShop后台修改模板文件、添加用户定义的帮助模板、修复库文件bug、设置允许编辑的库项目、配置模板文件及编辑可设定区域,包括具体的文件路径、代码修改示例及最终效果展示。
1万+

被折叠的 条评论
为什么被折叠?



