- 问题:没有子栏目时重复显示同级栏目。
- 解决办法:
- 打开
/include/taglib/channel.lib.php
文件,找到:$type=='son' && $reid!=0 && $totalRow==0
修改为:
$type=='son' && $reid!=0 && $totalRow==0 && $noself==''
- 在
dede:channel
标签中加入noself=yes
。
- 打开


分享服务器维护、抵抗入侵、防篡改、防御攻击、排查后门木马、清理挖矿病毒、网络安全、信息安全、内网安全、数据灾备、网站搬迁、程序升级、威胁情报、网站安全运维的日常知识
/include/taglib/channel.lib.php
文件,找到:
$type=='son' && $reid!=0 && $totalRow==0
修改为:
$type=='son' && $reid!=0 && $totalRow==0 && $noself==''
dede:channel
标签中加入 noself=yes
。