开源CMS \ dedecms \ 在使用dedecms的channel标签来调子栏目的时候,指定 “type=son typeid=x” 发现currentstyle无效

在使用dedecms的channel标签来调子栏目的时候,指定 “type=son typeid=x” 发现currentstyle无效

总点击53
简介:在使用dedecms的channel标签来调子栏目的时候,指定“type=sontypeid=x” 发现currentstyle无效,解决方法:

在使用dedecms的channel标签来调子栏目的时候,指定 “type=sontypeid=x”  发现currentstyle无效,解决方法:

找到include/taglib/channel.lib.php文件,在133行附近找到如下代码:

if( ($row['id']==$typeid ||($topid==$row['id'] && $type=='top') ) && $currentstyle!='' )

修改为:

if( ($row['id']== $refObj->TypeLink->TypeInfos['id']|| ($topid==$row['id'] && $type=='top') ) && $currentstyle!='')

就可以了。

意见反馈 常见问题 官方微信 返回顶部