求大神告诉我如何用DEDECMS代码取得,指定的主导航栏下有指定的下拉框子栏目?
注:(dede:channelarlist单独调用栏目ID的方法已经试过,首页是不显示的。)求大神指导。<divclass="nav"><divclass="navn">...
注:(dede:channelarlist 单独调用栏目ID的方法已经试过,首页是不显示的。)求大神指导。
<div class="nav">
<div class="navn">
<span><a href="{dede:global.cfg_cmsurl/}/">网站首页<em>home</em></a></span>
{dede:channelartlist type='top' row='7' currentstyle="<li class='hover'><a href='~typelink~' ~rel~><span>~typename~</span></a></li>"}
<span class="nli">{dede:field name="typename"/}<em>{dede:field name="typename"/}</em>
{/dede:channelartlist}
<div class="su" style="left:-104px">
<div class="su1">
<ul>
{dede:channel typeid='7' type="son" row='7' col='2'}
<li><a href="[field:typeurl/]" target="_blank">[field:typename/]</a></li>
{/dede:channel}
</ul>
<ul>
{dede:channel typeid='8' type="son" row='7' col='2'}
<li><a href="[field:typeurl/]" target="_blank">[field:typename/]</a></li>
{/dede:channel}
</ul>
</div>
</div>
</span>
</div>
</div> 展开
<div class="nav">
<div class="navn">
<span><a href="{dede:global.cfg_cmsurl/}/">网站首页<em>home</em></a></span>
{dede:channelartlist type='top' row='7' currentstyle="<li class='hover'><a href='~typelink~' ~rel~><span>~typename~</span></a></li>"}
<span class="nli">{dede:field name="typename"/}<em>{dede:field name="typename"/}</em>
{/dede:channelartlist}
<div class="su" style="left:-104px">
<div class="su1">
<ul>
{dede:channel typeid='7' type="son" row='7' col='2'}
<li><a href="[field:typeurl/]" target="_blank">[field:typename/]</a></li>
{/dede:channel}
</ul>
<ul>
{dede:channel typeid='8' type="son" row='7' col='2'}
<li><a href="[field:typeurl/]" target="_blank">[field:typename/]</a></li>
{/dede:channel}
</ul>
</div>
</div>
</span>
</div>
</div> 展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励30(财富值+成长值)
1个回答
展开全部
{dede:channelartlisttypeid="1,4,7,675,52,61,74,72,104,70,91,115,131,726"}
<divclass="linkbox">
<h3><ahref="{dede:field name='typeurl'/}">{dede:fieldname='typename'/}</a></h3>
<ul>
{dede:channel type='son' }
<li><ahref='[field:typelink/]'>[field:typename/]</a> </li>
{/dede:channel}
</ul></div>
{/dede:channelartlist}
<divclass="linkbox">
<h3><ahref="{dede:field name='typeurl'/}">{dede:fieldname='typename'/}</a></h3>
<ul>
{dede:channel type='son' }
<li><ahref='[field:typelink/]'>[field:typename/]</a> </li>
{/dede:channel}
</ul></div>
{/dede:channelartlist}
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询