|
|
destoon 企业主页修改导航栏目的方法

Destoon默认的企业主页导航栏目,在会员中心,会员是可以自己修改的,如上图,但是如果想进一步深入修改(比如,默认的栏目,和排序)就需要用到以下方法了。(注意,因6.0版本升级,部分内容可能会有所区别,请大家注意)
1 /lang/zh-cn/home.inc.php
portant;">portant; margin: 0px !important; list-style: decimal-leading-zero outside; border: none; line-height: 1.3em; color: inherit;">$HMENU = $DMENU = array('公司介绍', '供应产品', '采购清单', '新闻中心', '荣誉资质', '人才招聘', '联系方式', '公司相册', '招商代理', '品牌展示', '公司视频', '友情链接', '自定义页', '新菜单'); portant; margin: 0px !important;">$MFILE = array('introduce', 'sell', 'buy', 'news', 'credit', 'job', 'contact', 'photo', 'info', 'brand', 'video', 'link', 'page', 'page2', 'homepage'); [/ol]
2 /module/member/home.inc.php
portant;">portant; margin: 0px !important; list-style: decimal-leading-zero outside; border: none; line-height: 1.3em; color: inherit;">} else { portant; margin: 0px !important;"> $_menu_show = '1,1,1,1,1,1,1,1,0,0,0,0,0,1'; portant; margin: 0px !important; list-style: decimal-leading-zero outside; border: none; line-height: 1.3em; color: inherit;">} portant; margin: 0px !important;">$_menu_order = '0,10,20,30,40,50,60,70,80,90,100,110,120,130'; portant; margin: 0px !important; list-style: decimal-leading-zero outside; border: none; line-height: 1.3em; color: inherit;">$_menu_num = '1,16,30,30,10,30,1,12,12,12,12,30,1,1'; portant; margin: 0px !important;">$_menu_file = implode(',' , $MFILE); portant; margin: 0px !important; list-style: decimal-leading-zero outside; border: none; line-height: 1.3em; color: inherit;">$_menu_name = implode(',' , $HMENU); [/ol]
3 复制 module/company/page.inc.php 为page2.inc.php
portant;">portant; margin: 0px !important; list-style: decimal-leading-zero outside; border: none; line-height: 1.3em; color: inherit;">include template('page2', $template); [/ol]
4 module/company/init.inc.php
portant;">portant; margin: 0px !important; list-style: decimal-leading-zero outside; border: none; line-height: 1.3em; color: inherit;">$_menu_show = '1,1,1,1,1,1,1,1,0,0,0,0,0,1'; portant; margin: 0px !important;">} portant; margin: 0px !important; list-style: decimal-leading-zero outside; border: none; line-height: 1.3em; color: inherit;">$_menu_order = '0,10,20,30,40,50,60,70,80,90,100,110,120,130'; portant; margin: 0px !important;">$_menu_num = '1,16,30,30,10,30,1,12,12,12,12,30,1,1'; portant; margin: 0px !important; list-style: decimal-leading-zero outside; border: none; line-height: 1.3em; color: inherit;">$_menu_file = implode(',' , $MFILE); portant; margin: 0px !important;">$_menu_name = implode(',' , $HMENU); [/ol]
5 复制template/default/homepage/page.htm 为page2.htm
以上红色字体部分更改为自己的文件名和导航的名称。注意要想在公司主页显示自定义的导航首先要在会员组管理--->企业会员----->可用菜单、默认菜单进行勾选。特别注意的是要添加相应的栏目 |
|