dedecms调用新闻文章列表
效果如下:
代码如下:
<div class="list"> <ul class="d6 ico4"> {dede:list pagesize='17'} <li>[<b>[field:typelink/]</b>]<a href="[field:arcurl/]" class="title">[field:title/]</a><span style="float:right">[field:pubdate function="MyDate('Y-m-d',@me)"/]</span></li> {/dede:list} </ul> </div><!-- /listbox --> <div class="dede_pages"> <ul class="pagelist"> {dede:pagelist listitem="info,index,end,pre,next,pageno,option" listsize="5"/} </ul> </div><!-- /pages -->
类似首页这样不需要页码的调用
<ul class="d1 ico3">
{dede:arclist titlelen='40' row='6' typeid='3'}
<li><a href="[field:arcurl /]">[field:title /]</a><span>[[field:pubdate function="MyDate('Y/m/d',@me)"/]]</span></li>
{/dede:arclist}
</ul>
----------------
Lynx
The quieter you become,the more you are able to hear.