织梦cms联动两级变一级的办法,织梦教程
导读:织梦教程织梦教程DEDECMS的联动类型两级可以变一级的,相信大家都很需要吧,现在就来说一下如何修改文件,找到infolink.lib.php织梦模板。
织梦模板的联动类型两级可以变一级的,相信大家都很需要吧,现在就来说一下如何修改文件,找到infolink.lib.php
以下代码都注掉 /* $sontype = ( ($househx % 500 != 0) ? $househx : 0 ); $toptype = ( ($househx % 500 == 0) ? $househx : ( $househx-($membertype%500) ) ); $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=>$e免费织梦模板m) { 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>"; } }
声明: 本文由我的SEOUC技术文章主页发布于:2023-07-21 ,文章织梦cms联动两级变一级的办法,织梦教程主要讲述两级,办法,织梦网站建设源码以及服务器配置搭建相关技术文章。转载请保留链接: https://www.seouc.com/article/web_32544.html