织梦在导航栏下拉菜单中调用当前栏目子类的方
代码如下:
{dede:channelartlist typeid="top" row='18' currentstyle="<li class='hover'><a href='~typelink~' ~rel~><span>~typename~</span></a></li>"}
<ul id="navul" class="cl">
<!--注意下一行的标签,不是[field:??/]这种,而是{dede:field.??/}这种-->
<li><a href="{dede:field name="typeurl"/}" target="_blank">{dede:field name="typename"/}</a>
<ul>
{dede:channel type="son"}
<li><a href="[field:typeurl/]" title="HTML">[field:typename/]</a></li>
{/dede:channel}
</ul>
</li>
</ul>
{/dede:channelartlist}
{dede:channelartlist typeid="top" row='18' currentstyle="<li class='hover'><a href='~typelink~' ~rel~><span>~typename~</span></a></li>"}
<ul id="navul" class="cl">
<!--注意下一行的标签,不是[field:??/]这种,而是{dede:field.??/}这种-->
<li><a href="{dede:field name="typeurl"/}" target="_blank">{dede:field name="typename"/}</a>
<ul>
{dede:channel type="son"}
<li><a href="[field:typeurl/]" title="HTML">[field:typename/]</a></li>
{/dede:channel}
</ul>
</li>
</ul>
{/dede:channelartlist}