失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > 在使用dedecms的channel标签来调子栏目的时候 指定 “type=son typeid=x” 发现currentstyle无效

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

时间:2022-04-24 00:44:18

相关推荐

在使用dedecms的channel标签来调子栏目的时候 指定 “type=son typeid=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!='')

就可以了。

如果觉得《在使用dedecms的channel标签来调子栏目的时候 指定 “type=son typeid=x” 发现currentstyle无效》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。