织梦DedeCMS模板页中实现arclist分页效果,其实并不太复杂,只要按照下边的步骤操作就可以了,如果遇到问题请在下边的评论中留言,最火软件站(原网)一定会尽力并在最快的时间内回复您的问题,同时别忘记按下ctrl+d进行收藏哦。
1,头部必须引进 dede模板页中实arclist 分页效果
<script src=”{dede:global.cfg_cmsurl/}/include/dedeajax2.js” language=”javascript”></script>
<script>
function multi(pagenum,tagid)
{
var taget_obj = document.getElementByIdx_x(tagid);
var taget_obj_page = document.getElementByIdx_x(“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>
2,<UL>
{dede:arclist row=”100″ tagid=’lists’ order=’id desc’ pagesize=”18″ typeid=”132″ titlelen=”100″}
<LI><STRONG><A href=”[field:arcurl/]“ target=_blank tiltle=”[field:title/]“>[field:title/] </A></STRONG>
<P>[field:description function="cn_substr(@me,128)"/]… <A href=”[field:arcurl/]” target=_blank title=”[field:title/]“>[详情]</A> </P></LI>
{/dede:arclist}
<div style=”clear:both”></div>
{dede:arcpagelist tagid=’lists’/}
</UL>
(需要注意的是tagid和{dede:arcpagelist tagid=’lists’/} 必须保持一致,可以随意起名字,一个页面中不要有重复,row=”"的条数要写多一点些少会显示到那么多就不会在显示了,不写好像不管用吧)