織夢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聯動兩級變一級的辦法,織夢教程主要講述兩級,辦法,織夢網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_32544.html