如果用子栏目模式,当没有子栏目时显示同级栏目优化

打开:include\taglib\channel.lib.php文件。

将源代码

//如果用子栏目模式,当没有子栏目时显示同级栏目
if($type=='son' && $reid!=0 && $totalRow==0)

改为:

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

在模版中

{dede:channel type=’son’ noself=’yes’}

 

posted @ 2019-03-17 10:58  python_yue  阅读(176)  评论(0编辑  收藏  举报