<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

织梦二级栏目,当前栏目高亮的问题解决

时间:2020-12-15

首先,修改include\taglib\channelartlist.lib.php
找到 $pv->Fields[‘typeurl’] = GetOneTypeUrlA($typeids[$i]);
在下面增加以下代码:
 
//当前栏目高亮
if($typeids[$i]['id'] == $refObj->TypeLink->TypeInfos['id']){
$pv->Fields['currentstyle'] = ' class="m_hover"';
}
else{
$pv->Fields['currentstyle'] = '';
}
保存。
 
使用时,这样使用
 
<ul class="ky7">
{dede:channelartlist type='son' noself='yes' typeid='2'}
<li><a href="{dede:field name='typeurl'/}" {dede:field name='currentstyle'/}>{dede:field name='typename'/}</a></li>
{/dede:channelartlist}
</ul>
这样,当前栏目的a标签就会多一个.m_hover的类
在css里面定义不同的样式即可。
    0
    首页
    案例
    关于
    联系