名站网址导航为大驾家提供DedeCMS站点程序站点教程相关的知识,比如织梦程序安装教程,织梦程序系统故障等教程。
Dedecms联动类型两级变一级的办法,这个相信大驾家都很需要吧,现在就来说一下如何修改网站文件,找到infolink.lib.php
以下相关具体代码如下都注掉
/* $sontype = ( ($househx % 500 != 0) ? $househx : 0 ); $toptype = ( ($househx % 500 == 0) ? $househx : ( $househx-($membertypeP0) ) ); $fields['househx'] = "<a href='{$baseurl}plus/list.php?channelid={$channelid}&tid={$typeid}&househx={$toptype}&nativeplace={$nativeplace}'><b>{$em_househxs[$toptype]}</b></a> "; 下级显示不显示 foreach($em_househxs as $eid=>$em) { if($eid < $toptype 1 || $eid > $toptype 499) continue; if($eid == $househx) { $fields['househx'] .= " <b>{$em}</b>"; } else { $fields['househx'] .= " <a href='{$baseurl}plus/list.php?channelid={$channelid}&tid={$typeid}&househx={$eid}&nativeplace={$nativeplace}'>{$em}</a>"; } } */ |
换成
foreach($em_househxs as $eid=>$em) { if($eid % 500 != 0) continue; if(isset($_GET['househx'])) { $navclass=$_GET['househx']; if ($navclass==$eid) { $navclass=' style=color:#ff0000'; } $fields['househx'] .= " <a href='{$baseurl}plus/list.php?channelid={$channelid}&tid={$typeid}&househx={$eid}&nativeplace={$nativeplace}'".$navclass.">{$em}</a>"; } } liehuo.得德.net学院 |
关于DedeCMS站点程序站点教程相关的知识,就说到这里了希望能帮助朋友们。DedeCMS站点程序 5.6 搜索页空白的临时解决相关具体操作方法