織夢Dedecms聯動方式二級變一級的方法_DedeCms教程

      編輯Tag賺U幣
      教程Tag:暫無Tag,歡迎添加,賺取U幣!
      織夢Dedecms聯動方式二級變一級的方法,現在就來說一下如何修改文件,找到infolink.lib.php
      以下代碼都注掉
      1. /*  
      2. $sontype = ( ($househx % 500 != 0) ? $househx : 0 );  
      3. $toptype = ( ($househx % 500 == 0) ? $househx : ( $househx-($membertype%500) ) );  
      4. $fields['househx'] = "<a href=’{$baseurl}plus/list.php?channelid={$channelid}&tid={$typeid}&househx={$toptype}&nativeplace={$nativeplace}’><b>{$em_househxs[$toptype]}</b></a> ";  
      下級顯示不顯示
      1. foreach($em_househxs as $eid=>$em) 
      2. if($eid < $toptype+1 || $eid > $toptype+499) continue; 
      3. if($eid == $househx) { 
      4. $fields['househx'] ." <b>{$em}</b>"
      5. else { 
      6. $fields['househx'] ." <a href=’{$baseurl}plus/list.php?channelid={$channelid}&tid={$typeid}&househx={$eid}&nativeplace={$nativeplace}’>{$em}</a>"
      7. */ 
      換成
      1. foreach($em_househxs as $eid=>$em) 
      2. if($eid % 500 != 0) continue; 
      3. if(isset($_GET['househx'])) 
      4. $navclass=$_GET['househx']; 
      5. if ($navclass==$eid) 
      6. $navclass=’ style=color:#ff0000′; 
      7. $fields['househx'] ." <a href=’{$baseurl}plus/list.php?channelid={$channelid}&tid={$typeid}&househx={$eid}&nativeplace={$nativeplace}’".$navclass.">{$em}</a>"; 
      僅供大家學習參考,希望對大家有幫助

      查看更多 DedeCms教程  織夢模板  織夢DedeCms視頻教程  織夢dedecms專題

      來源:模板無憂//所屬分類:DedeCms教程/更新時間:2020-04-30
      相關DedeCms教程