欢迎光临
我们一直在努力

织梦CMS让channelartlist标签支持currentstyle属性的方法

 

今天就教大家如何实现channelartlist标签支持currentstyle属性。

打开 include aglibchannelartlist.lib.php,找到代码:

 

在此行代码下方增加以下代码:

 

网上找到的一般没有加?$typeids[$i][‘id’]==$refObj->TypeLink->TypeInfos[‘topid’]

添加这个后才能对二级栏目也起作用,调用方法:

 

如果是当前栏目则 li的class属性显示current,否则显示class=” ,也可以修改currentstyle=’这里改为你需要的类名。

 

赞(0)
未经允许不得转载:WP之家 » 织梦CMS让channelartlist标签支持currentstyle属性的方法

登录

找回密码

注册