首页 > 运营 > 帮助中心 > 正文

织梦CMS 如何判断栏目子栏目是否存在

2020-01-27 17:31:08
字体:
来源:转载
供稿:网友

打开:include/taglib/channel.lib.php文件可以看到:

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

把 

  1. if($type=='son'&&$reid!=0&&$totalRow==0)

改成

  1. if($type=='son'&&$reid!=0&&$totalRow==0&&$noself=='')

在织梦的channel标签中加上 noself='yes'就可以了!

  1. {dede:channel type='son'row='5'noself='yes'}
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表