muban大师 发表于 2021-7-31 14:06:13

织梦无子栏目时禁止调用同级栏目

1. 修改文件 \include\taglib\channel.lib.php
       
        把代码
       
       
               
                       
                               
                                       
if($type=='son' && $reid!=0 && $totalRow==0)
                               
                       
               
       

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

       
        2. 使用channel标签时添加noself属性
       
        {dede:channel noself='yes'} {/dede:channel}
页: [1]
查看完整版本: 织梦无子栏目时禁止调用同级栏目