您现在的位置是:首页 > 教程 > ecshop商城教程ecshop商城教程
ecshop自定义页面怎么增加模板功能方法
华章滕2023-11-25 21:26:26ecshop商城教程已有人查阅
导读自定义一个页面 并且配了一个自定义模版 但是模版后台设置库文件的时候下拉列表里没有我新建的那个模版
自定义一个页面 并且配了一个自定义模版 但是模版后台设置库文件的时候下拉列表里没有我新建的那个模版
过程如下:
自定义页面名称 record.php( index.php),自定义模版 record.dwt( index.dwt)
——————把record.php文件中原有的index.dwt替换成record.dwt
但是我想在record.php这个文件里调用库文件,比如调用精品推荐 ,要在后台修改调用精品推荐的数量
修改 languages\zh_cn\admin\template.php
增加了 $_LANG['template_files']['record'] = '录音分类页模版';
增加 'record.dwt',
过程如下:
自定义页面名称 record.php( index.php),自定义模版 record.dwt( index.dwt)
——————把record.php文件中原有的index.dwt替换成record.dwt
但是我想在record.php这个文件里调用库文件,比如调用精品推荐 ,要在后台修改调用精品推荐的数量
修改 languages\zh_cn\admin\template.php
增加了 $_LANG['template_files']['record'] = '录音分类页模版';
/* 每一个模板文件对应的语言 */ $_LANG['template_files']['article'] = '文章内容模板'; $_LANG['template_files']['article_cat'] = '文章分类模板'; $_LANG['template_files']['brand'] = '品牌专区'; $_LANG['template_files']['catalog'] = '所有分类页'; $_LANG['template_files']['category'] = '商品分类页模板'; $_LANG['template_files']['flow'] = '购物流程模板'; $_LANG['template_files']['goods'] = '商品详情模板'; $_LANG['template_files']['group_buy_goods'] = '团购商品详情模板'; $_LANG['template_files']['group_buy_list'] = '团购商品列表模板'; $_LANG['template_files']['index'] = '首页模板'; $_LANG['template_files']['record'] = '录音分类页模版'; $_LANG['template_files']['search'] = '商品搜索模板'; $_LANG['template_files']['compare'] = '商品比较模板'; $_LANG['template_files']['snatch'] = '夺宝奇兵'; $_LANG['template_files']['tag_cloud'] = '标签云模板'; $_LANG['template_files']['brand'] = '商品品牌页'; $_LANG['template_files']['auction_list'] = '拍卖活动列表'; $_LANG['template_files']['auction'] = '拍卖活动详情';
修改 admin/includes/lib_template.php增加 'record.dwt',
/* 可以设置内容的模板 */ $template_files = array( 'index.dwt', 'record.dwt', 'article.dwt', 'article_cat.dwt', 'brand.dwt', 'catalog.dwt', 'category.dwt', 'user_clips.dwt', 'compare.dwt', 'gallery.dwt', 'goods.dwt', 'group_buy_goods.dwt', 'group_buy_flow.dwt', 'group_buy_list.dwt', 'user_passport.dwt', 'pick_out.dwt', 'receive.dwt', 'respond.dwt', 'search.dwt', 'flow.dwt', 'snatch.dwt', 'user.dwt', 'tag_cloud.dwt', 'user_transaction.dwt', 'style.css', 'auction_list.dwt', 'auction.dwt', );
增加:
'record' => array( '/library/ur_here.lbi' => 0, '/library/search_form.lbi' => 0, '/library/new_articles.lbi' => 0, '/library/category_tree.lbi' => 0, '/library/invoice_query.lbi' => 0, '/library/recommend_best.lbi' => 3, '/library/recommend_new.lbi' => 3, '/library/recommend_hot.lbi' => 3, '/library/recommend_promotion.lbi' => 3, '/library/group_buy.lbi' => 3, '/library/auction.lbi' => 3, '/library/brands.lbi' => 0, '/library/promotion_info.lbi' => 0, '/library/order_query.lbi' => 0, '/library/email_list.lbi' => 0, '/library/vote_list.lbi' => 0 ),
本文标签:
很赞哦! ()
相关文章
随机图文
-
ecshop后台商品描述改成编辑器的方法
如果你想把商品简单描述弄的花里胡哨的,也许这篇文章对你比较有用。因为用编辑器形式来发布,才最容易实现个 化的简单描述,比如“给文字加不同颜 ” -
ecshop出现Call to undefined function insert_ads()的解决方法
ECShop Fatal error: Call to undefined function insert_ads() in includes/cls_template.php on line 1157 报错解决方法 -
ecshop首页显示不同会员等级不同折扣价格的方法
近期很多朋友都问了一些二次开发的问题,在此会不定期的分享一些二次开发的教程给大家参考。今天就介绍一下ecshop不同 -
ecshop用户中心收藏列表里显示商品缩略图的实现方法
1)、修改 includes/lib_clips.php 文件;2)、然后修改模板文件,这里以 官方默认模板为例进行讲解。3)、大功告成
留言与评论 (共有 条评论) |