织梦首页分页标签应该怎么写?想用{dede:arcpagelist tagid='index'/}标签实现分页,具体应该怎么弄
<divid="relist">{dede:arclisttypeid=''row='10'pagesize='10'tagid='index'col=''titlele...
<div id="relist">
{dede:arclist typeid='' row='10' pagesize='10' tagid='index' col='' titlelen='50' infolen='155' listtype='all' orderby='pubdate'}
<div class="list">
<dl>
<dt class="re-picture"><a href="[field:arcurl/]" target="_blank"><img src="[field:litpic/]" alt="[field:title function='html2text(@me)'/]" width=250 height=165></a></dt>
<dd class="re-text">
<h3><a href="[field:arcurl/]" target="_blank">[field:title/]</a></h3>
<p>[field:infos/]......</p>
</dd>
</dl>
</div>
{/dede:arclist}
{dede:arcpagelist tagid='index'/}
</div>
</div>
<div id="more"><a href="" target="_blank">更多阅读</a></div>
想通过点击更多阅读实现分页,或者在已经加载过得列表下面添加新内容 展开
{dede:arclist typeid='' row='10' pagesize='10' tagid='index' col='' titlelen='50' infolen='155' listtype='all' orderby='pubdate'}
<div class="list">
<dl>
<dt class="re-picture"><a href="[field:arcurl/]" target="_blank"><img src="[field:litpic/]" alt="[field:title function='html2text(@me)'/]" width=250 height=165></a></dt>
<dd class="re-text">
<h3><a href="[field:arcurl/]" target="_blank">[field:title/]</a></h3>
<p>[field:infos/]......</p>
</dd>
</dl>
</div>
{/dede:arclist}
{dede:arcpagelist tagid='index'/}
</div>
</div>
<div id="more"><a href="" target="_blank">更多阅读</a></div>
想通过点击更多阅读实现分页,或者在已经加载过得列表下面添加新内容 展开
1个回答
展开全部
{dede:arclist 需要指定typeid,另外在</head>之前加以下js代码
<script type="text/javascript" src="{dede:global.cfg_cmsurl/}/include/dedeajax2.js"></script>
<script language="javascript" type="text/javascript">
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>
模板里{dede:arcpagelist tagid='index'/}就是分页按钮,你可以修改成你希望的样子,这个分页代码是在\include\taglib\arcpagelist.lib.php
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询