欢迎访问织梦学习网,加群!!!!!!!!!!!!!!!!
当前位置:主页 > 教程帮助 >

dede arclist标签分页使用技巧

2018-03-23 dedecms教程帮助 dede,arclist,标签,分页,使用技巧,第一步,在,

 第一步:在dede模板首页的<head>标签内添加这段代码

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


      第二步在<body>标签内添加以下代码即可

 
{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}
{dede:arcpagelist tagid='index'/}