如果用子栏目模式,当没有子栏目时显示同级栏目优化
打开: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’}
打开: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’}