DEDECMS中,channelartlist标签
当前频道的下级栏目的内容列表 dede:channelartlist
标签:
{dede:channelartlist row=6}
<dl>
<dt><a href='{dede:field name='typeurl'/}'>{dede:field name='typename'/}</a></dt>
<dd>
{dede:arclist titlelen='42' row='10'}
<ul class='autod'>
<li><a href="[field:arcurl /]">[field:title /]</a></li>
<li>([field:pubdate function="MyDate('m-d',@me)"/])</li>
</ul>
{/dede:arclist}
</dd>
</dl>
{/dede:channelartlist}
channelartlist 是唯一一个可以直接嵌套其它标记的标记,不过仅限于嵌套 {dede:type}{/dede:type} 和 {dede:arclist}{/dede:arclist} 两个标记。
{dede:channelartlist typeid='top' currentstyle='on'}
<li class="child {dede:field.currentstyle/}"> <a href="{dede:field name='typeurl'/}">
<p class="title">{dede:field name='typename'/}</p>
</a>
<ul class="childContent">
{dede:channel type='son' noself='yes'} <a href="[field:typeurl/]">
<li class="childContentLi">[field:typename/]</li>
</a> {/dede:channel}
</ul>
<img class="wapNavPointer" src="/skin/images/wapnavpointer.jpg" /> </li>
{/dede:channelartlist}
<li class="child {dede:field.currentstyle/}"> <a href="{dede:field name='typeurl'/}">
<p class="title">{dede:field name='typename'/}</p>
</a>
<ul class="childContent">
{dede:channel type='son' noself='yes'} <a href="[field:typeurl/]">
<li class="childContentLi">[field:typename/]</li>
</a> {/dede:channel}
</ul>
<img class="wapNavPointer" src="/skin/images/wapnavpointer.jpg" /> </li>
{/dede:channelartlist}