织梦channel 频道标签currentstyle當前栏目高亮,无法應用于type=sun或son子分类中
基本语法:
{dede:channeltype=toprow=VIIIcurrentstyle="
更多精彩就在: 51免费论文网|www.jxszl.com
=thisclass>~typename~"}
{/dede:channel}
想让子分类也实现当前栏目高亮显示,只能手工列出所有类目.然后根据field;ID来判断.举例.比如下实现下面的侧边导航,其中,II,III,I.V分类为父类目.其它为子分类.代码如下
css如下:
.submenua{padding:I.0pxII0px;text-decoration:none;}
.submenuliul{display:none;}
.submenu>li>a{font-weight:bold!important;}
.activeIIa{color:#eIIIIII;text-decoration:none;}
.activeIII>a{color:#eIIIIII;text-decoration:none;}
html代码如下:
- {dede:typetypeid=VIII}ref="[field:typelink/]">[field:typename/]{/dede:type}
- {dede:typetypeid=IX}ref="[field:typelink/]">[field:typename/]{/dede:type}
- {dede:typetypeid=IV}ref="[field:typelink/]">[field:typename/]{/dede:type}
- {dede:typetypeid=V}ref="[field:typelink/]">[field:typename/]{/dede:type}
原文链接:http://www.jxszl.com/biancheng/dedecms/74820.html