织梦CMS dede:channel取子栏目时重复显示同级栏目

网站建设 2022-07-27 08:13www.1681989.com免费网站
没有子栏目时重复显示了同级栏目 解决方法 1、打开 /clude/taglib/channel.lib.php 找到 $type==son $reid!=0 $totalRow==0 改成 $type==son $reid!=0 $totalRow==0 $noself== 2、 dede:channel 标签写法加入 noself=yes […]



没有子栏目时重复显示了同级栏目

 

解决方法

1、打开 /clude/taglib/channel.lib.php 找到

$type=='son' && $reid!=0 && $totalRow==0

改成

$type=='son' && $reid!=0 && $totalRow==0 && $noself==''

2、dede:channel 标签写法加入noself=yes


Copyright © 2016-2025 www.1681989.com 推火网 版权所有 Power by