织梦让channelartlist标签支持currentstyle高亮属性方法
首先打开include aglibchannelartlist.lib.php
找到
$pv->Fields[typeurl]=GetO
更多精彩就在: 51免费论文网|www.jxszl.com
neTypeUrlA($typeids[$i]);
在此行代码下方增加以下代码:
if($typeids[$i][id]==$refObj->TypeLink->TypeInfos[id]||$typeids[$i][id]==$refObj->TypeLink->TypeInfos[topid]){
$pv->Fields[currentstyle]=$currentstyle?$currentstyle:current;
}
else{
$pv->Fields[currentstyle]=;
}
添加这个后才能对II级栏目也起作用
调用方法:
{dede:channelartlisttypeid=IVcurrentstyle=current}
{/dede:channelartlist}
原文链接:http://www.jxszl.com/biancheng/dedecms/76551.html