后台一共需要修改下面的四个文件,假设根目录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
4
C:/ProgramFiles/ShopEx/shop/docroot/ecshop/admin/includes/lib_template.php
将
修改成
5
C:/ProgramFiles/ShopEx/shop/docroot/ecshop/admin/includes/lib_template.php
在
6
C:/ProgramFiles/ShopEx/shop/docroot/ecshop/themes/default/libs.xml
加入下面代码,这些区域就变成可指定的了,以外的部分就不能被设定。如果不在这个文件中加入任何信息,所有的项目都是可编辑的
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>
红色背景部分是可编辑区域,如下图
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