以ECSHOP官方默认模板为例
1.我们打开后台,选择模板设置》首页模板
如下图:
发现很多都是非可编辑区,我们以品牌专区为例来进行修改
2.打开模板目录下的libs.xml文件,代码如下
goods_related
cart
category_tree
article_category_tree
filter_attr
price_grade
cart
category_tree
goods_related
goods_fittings
goods_article
goods_attrlinked
cart
category_tree
goods_related
goods_fittings
goods_article
goods_attrlinked
cart
category_tree
filter_attr
price_grade
recommend_best
goods_list
pages
cart
category_tree
filter_attr
price_grade
cart
category_tree
history
recommend_best
goods_list
pages
cart
category_tree
cart
category_tree
filter_attr
price_grade
history
exchange_hot
exchange_list
pages
cart
category_tree
goods_related
goods_fittings
goods_article
goods_attrlinked
goods_tags
bought_goods
comments
cart
category_tree
goods_related
goods_fittings
goods_article
goods_attrlinked
cart
category_tree
goods_related
goods_fittings
goods_article
goods_attrlinked
cart
category_tree
top10
promotion_info
order_query
invoice_query
vote_list
email_list
recommend_best
recommend_new
recommend_hot
auction
group_buy
cart
category_tree
goods_related
goods_fittings
goods_article
goods_attrlinked
cart
categorys
goods_related
goods_fittings
goods_article
goods_attrlinked
cart
category_tree
goods_related
goods_fittings
goods_article
goods_attrlinked
cart
category_tree
goods_related
goods_fittings
goods_article
goods_attrlinked
红色标注的部分便是对index.dwt中的可编辑区的模块进行了初始化,我们发现3个可编辑区"左边区域" "站内快讯上广告位(宽:210px)" "右边主区域" 里面根本没有brands ,所以在后台首页模板设置时当然就会是非可编辑区了,说明一下
cart
category_tree
top10
promotion_info
order_query
invoice_query
vote_list
email_list
备注:其中的cart 其实就相当于把cart.lbi这个库文件放到“左边区域”进行初始化
3.现在我们要把品牌专区模块能够在后台的首页模板设置中的左边区域中出现并且可以编辑
只要把libs.xml文件中对应的index下的左边区域初始化区加入即可,如下
==================================
cart
brands
category_tree
top10
promotion_info
order_query
invoice_query
vote_list
email_list
recommend_best
recommend_new
recommend_hot
auction
group_buy
==============================
4.改完后我们到再到后台模板设置首页模板中查看如下,此时发现后台已经可以选择并且可以编辑品牌专区模块了!