织梦二次开发网站今天在给客户修复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.0833zz.com