dede:channel二级导航currentstyle属性失效问题

Posted laq627

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了dede:channel二级导航currentstyle属性失效问题相关的知识,希望对你有一定的参考价值。

dede:channel默认只作用在一级导航中,在调用下级导航(type=‘son‘)时,发现不起作用。

修改方法:修改 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!=‘‘ )

 

以上是关于dede:channel二级导航currentstyle属性失效问题的主要内容,如果未能解决你的问题,请参考以下文章