织梦Dedecms联动方式二级变一级的方法
DEDEcms联动类别一般都是两级联动,怎么把这个两级的修改成一级的,我想有些同学也有这样的问题吧。那么小编就把要修改的代码和大家共享下。
首先要修改infolink.lib.php
注释掉一下代码:
/*
househx % 500 != 0) ? $househx : 0 );
househx % 500 == 0) ? $househx : ( membertype%500) ) );
KaTeX parse error: Expected '}', got 'EOF' at end of input: …] = "<a href=’{baseurl}plus/list.php?channelid={KaTeX parse error: Expected 'EOF', got '}' at position 10: channelid}̲&tid={typeid}&househx={KaTeX parse error: Expected 'EOF', got '}' at position 8: toptype}̲&nativeplace={nativeplace}’>{toptype]} ";
下级显示不显示
foreach($em_househxs as em)
{
if($eid < $toptype+1 || $eid > $toptype+499) continue;
if($eid == $househx) {
KaTeX parse error: Expected '}', got 'EOF' at end of input: …ehx'] .= " <b>{em}";
}
else {
KaTeX parse error: Expected '}', got 'EOF' at end of input: …xiaoyuani.com’{baseurl}plus/list.php?channelid={KaTeX parse error: Expected 'EOF', got '}' at position 10: channelid}̲&tid={typeid}&househx={KaTeX parse error: Expected 'EOF', got '}' at position 4: eid}̲&nativeplace={nativeplace}’>{$em}";
}
}
*/
换成
foreach($em_househxs as em)
{
if($eid % 500 != 0) continue;
if(isset($_GET[‘househx’]))
{
_GET[‘househx’];
if (eid)
{
$navclass=’ style=color:#ff0000′;
}
KaTeX parse error: Expected '}', got 'EOF' at end of input: …xiaoyuani.com‘{baseurl}plus/list.php?channelid={KaTeX parse error: Expected 'EOF', got '}' at position 10: channelid}̲&tid={typeid}&househx={KaTeX parse error: Expected 'EOF', got '}' at position 4: eid}̲&nativeplace={nativeplace}’".KaTeX parse error: Expected '}', got 'EOF' at end of input: navclass.">{em}";
}
}
希望对大家有点用处吧。呵呵