注意:首页模板用arclist标签,用row='3'是初始化调用的3条;列表模板用list标签,用pagesize='3'。模板里面的<div class="data-list“>与js里面的data-list对应,需要把循环部分全部包裹起来
<div class="listbox">
<ul class="e2">
<div class="data-list">
{dede:arclist row='3'}
<li> [field:array runphp='yes']@me = (empty(@me['litpic']) ? "" : "<a href='{@me['arcurl']}' class='preview'><img src='{@me['litpic']}'/></a>"); [/field:array]
[<b>[field:typelink/]</b>] <a href=http://www.dede58.com/"[field:arcurl/]" class="title">[field:title/]</a> <span class="info"> <small>日期:</small>[field:pubdate function="GetDateTimeMK(@me)"/] <small>点击:</small>[field:click/] <small>好评:</small>[field:scores/] </span>
<p class="intro"> [field:description/]... </p>
</li>
{/dede:arclist}
</div><!--data-list-->
</ul>
</div>
<!-- /listbox -->
。