首页 > 教程 > 织梦channel标签指定了栏目id后,currentstyle属性无效怎么办?

织梦channel标签指定了栏目id后,currentstyle属性无效怎么办?

[导读]:织梦 二次开发网站今天在给客户修复bug的过程中发现 织梦 channel标签在指定typeid之后,currentstyle属性没有作用了,现在给出以下解决方案 找到/include/taglib/channel.lib.php文件第13...
织梦二次开发网站今天在给客户修复bug的过程中发现织梦channel标签在指定typeid之后,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!='' )

本文来自投稿,不代表微盟圈立场,如若转载,请注明出处:https://www.vm7.com/a/jc/115367.html