POST TIME:2021-05-24 03:11
织梦DedeCMS模板页中实现arclist分页效果
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=”"的条数要写多一点些少会显示到那么多就不会在显示了,不写好像不管用吧)