dedecms首页单独调用栏目版块的办法

dedecms首页单独调用栏目版块的办法

<div class="listbox">{dede:channelartlist}
<dl class="tbox">
<dt><strong><a href="{dede:field name='typeurl'/}">{dede:field name='typename'/}</a></strong><span class="more"><a href="{dede:field name='typeurl'/}">更多...</a></span></dt>
<dd>
<ul class="d1 ico3">{dede:arclist titlelen='60' row='6'}
<li><span class="date">[field:pubdate function="MyDate('m-d',@me)"/]</span><a href="[field:arcurl /]">[field:title /]</a></li>
{/dede:arclist}
</ul>
</dd>
</dl>{/dede:channelartlist}
</div><!-- /listbox -->

以上是官方默认的首页版块调用,默认是调用全站二级栏目的,如果想单独调用某版块的话,可作以下设置:

<div class="listbox">{dede:channelartlist}
<dl class="tbox">
<dt><strong><a href="版块路径">版块名称</a></strong><span class="more"><a href="版块路径">更多...</a></span></dt>
<dd>
<ul class="d1 ico3">{dede:arclist titlelen='60' row='6' typeid='栏目id号'}
<li><span class="date">[field:pubdate function="MyDate('m-d',@me)"/]</span><a href="[field:arcurl /]">[field:title /]</a></li>
{/dede:arclist}
</ul>
</dd>
</dl>{/dede:channelartlist}
</div><!-- /listbox -->

by 雪洁 2010-12-03 01:20:00 2745 views
我来说几句

相关文章