织梦DedeCMS首页arclist分页可以利用arcpagelist标签来实现,这里说一下调用方法:首先必须在首页的head/head标签里面引入如下js代码: script language=javascript type=text/javascript src={dede:global.cfg
<script language="javascript" type="text/javascript" src="{dede:global.cfg_cmsurl/}/include/dedeajax2.js"></script> <script> function multi(pagenum,tagid) { var taget_obj = document.getElementById(tagid); var taget_obj_page = document.getElementById("page_"+tagid); myajax = new DedeAjax(taget_obj,false,false,'','',''); myajax.SendGet2("/plus/arcmulti.php?mtype=0&pnum="+pagenum+'&tagid='+tagid); myajax = new DedeAjax(taget_obj_page,false,false,'','',''); myajax.SendGet2("/plus/arcmulti.php?mtype=1&pnum="+pagenum+'&tagid='+tagid); DedeXHTTP = null; } </script>然后在首页模板中的arclist标签中必须含有tagid与pagesize参数。第一个是缓存名,第二个是单页条数,如下面的代码:
{dede:arclist tagid='index' pagesize='5'} <li><b><a href="[field:arcurl/]" style="color: #FF6633">[field:title/]</a></b></li> <p class="my_tj_info">[field:info/]...</p> {/dede:arclist}然后在下面加入arcpagelist标签,且必须声明缓存参数tagid且缓存参数与arclist中tagid保持一致。如下面的代码: {dede:arcpagelist tagid='index'/} 到这里就可以了,然后就是具体的CSS样式大家根据自己的情况进行美化就可以了!