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

打开:include aglibchannel.lib.php文件。

将源代码

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

改为:

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

在模版中

{dede:channel type=’son’ noself=’yes’}
原文地址:https://www.cnblogs.com/gaowy/p/10545927.html