Pursuing a dream for use arclist list page to page through the secondary development +

The following steps are carried out in a list page, the first step must first add in front of home

<script language="javascript" type="text/javascript" src="{dede:global.cfg_cmsurl/}/include/dedeajax2.js"></script>

Step Two: You must introduce the following javascript code:

<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>

The third step: the pagesize parameter must contain tagid in arclist label. The first is a name cache, the second is the number of single page; for example:

{dede:arclist tagid='index' pagesize='5'}
 	<h2><a href="[field:arcurl/]">[field:title/]</a></h2>
   <p>[field:description function="cn_substr(@me,168)"/]...<a href="[field:arcurl/]">[查看全文]</a></p>
    <img src="/images/sch-zy.jpg" />
    <span> [field:pubdate function="GetDateMK(@me)"/]</span>
    <img src="/images/sch-zy1.jpg" />
{/dede:arclist}

Step Four: page tags, labels must be present arcpagelist and must declare cache and cache parameters and parameter tagid arclist in tagid consistent. E.g:

{dede:arcpagelist tagid='index'/}
Published 10 original articles · won praise 0 · Views 100

Guess you like

Origin blog.csdn.net/lichuang214/article/details/104783008