调用的时候写
加入noself='yes'
{dede:channel row='8' noself='yes'}
在channel.lib.php文件内找到
//如果用子栏目模式,当没有子栏目时显示同级栏目 if($type=='son' && $reid!=0
改成 if($type=='son' && $reid!=0 && $totalRow==0 && $noself=='')
就是增加一个&&判断即可!
调用的时候写
加入noself='yes'
{dede:channel row='8' noself='yes'}
在channel.lib.php文件内找到
//如果用子栏目模式,当没有子栏目时显示同级栏目 if($type=='son' && $reid!=0
改成 if($type=='son' && $reid!=0 && $totalRow==0 && $noself=='')
就是增加一个&&判断即可!