ecmall如何增加可编辑的模板第一步 修改 nbsp wwwroot admin app template app php nbsp nbsp function get editable pages nbsp nbsp nbsp nbsp nbsp nbsp returnarray nbsp nbsp nbsp nbsp nbsp nbsp index SITE URL index php nbsp nbsp nbsp nbsp nbsp nbsp gcategory SIT
修改 \wwwroot\admin\app\template.app.php
function _get_editable_pages()
{
return array(
‘index’ => SITE_URL . ‘/index.php’,
‘gcategory’ => SITE_URL . ‘/index.php?app=category’,
‘article’ => SITE_URL . ‘/index.php?act=index&app=article’,
);
}
第二步:
修改 \wwwroot\languages\sc-utf-8\admin\template.lang.php
return array(
‘no_such_page’ => ‘没有指定页面!’,
‘save_successed’ => ‘保存页面成功!您可以点击查看商城首页查看效果’,
‘no_such_widget’ => ‘没有指定的挂件’,
‘click_to_add’ => ‘点击添加该挂件到页面’,
‘widget_list’ => ‘挂件列表’,
‘hidden’ => ‘隐藏’,
‘save’ => ‘保存修改’,
‘end_edit’ => ‘退出编辑’,
‘mall_index’ => ‘商城首页’,
‘template_setting’ => ‘模板编辑’,
‘index’ => ‘首页’,
‘recommend_new’ => ‘最新商品’,
‘gcategory’ => ‘商品分类页’,
‘article’ => ‘文章’, //新加的页面名字
);
?>
完成以上步骤后在后台的“模板编辑”里会发现多了一个“文章”的可编辑模板,如图:
ecmall如何增加可编辑的模板
但点击编辑后会发现根本就没有可以放置挂件的区域,这时候还需要做第三步
第三步
修改 \wwwroot\themes\mall\default\article.index.html
……
{include file=page.bottom.html}
{include file=footer.html}
刷新模板编辑页面,插入插件,OK!
具体布局自己做相应的调整。
转载请注明出处: http://www.10010s.com/article/view-32.html
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/229296.html原文链接:https://javaforall.net