首页 > 运营 > CMS建站 > 正文

织梦channelartlist加入当前栏目焦点样式

2020-01-27 20:33:59
字体:
来源:转载
供稿:网友
大家都知道如何加上channel的当前栏目焦点样式了,但channelartlist还是比较少接触。可以用currentstyle='activate'

比如

{dede:channelartlist  row='6' typeid="top" currentstyle='activate' }
<li class='{dede:field.currentstyle/}'><a  href="{dede:field name='typeurl'/}">{dede:field name='typename'/}</a>
<!--二级菜单-->
<ul class="sub-menu list-unstyled">
{dede:channel type='son' noself='yes' }
<li><a href='[field:typeurl/]' >[field:typename/]</a></li>
{/dede:channel}
</ul>
<!--/二级菜单-->
</li>
{/dede:channelartlist} 

即可得:
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表