destoon采集论坛

 找回密码
 立即注册
查看: 750|回复: 0

destoon 网站关于企业主页修改导航栏目的方法

[复制链接]

227

主题

0

回帖

1627

积分

版主

Rank: 7Rank: 7Rank: 7

积分
1627
发表于 2016-7-5 11:04:36 | 显示全部楼层 |阅读模式
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
以上红色字体部分更改为自己的文件名和导航的名称。注意要想在公司主页显示自定义的导航首先要在会员组管理--->企业会员----->可用菜单、默认菜单进行勾选。特别注意的是要添加相应的栏目
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|destoon采集论坛

GMT+8, 2025-11-23 05:04 , Processed in 0.015133 second(s), 21 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表