在织梦系统里,怎么让dede:pagelist 分页标签支持 typeid属性?谢谢。因为我想调用其他栏目的内容分页
2个回答
展开全部
<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>
{dede:arclist tagid='index' pagesize='1' titlelen='24' orderby='pubdate' typeid='15' idlist='' flag=h}
<div class="diyproOne">
<a href="[field:arcurl/]"><img src="[field:litpic/]" class="diyproOne-Proimg" /></a>
<p><span>品牌名称:</span>[field:title/]</p>
<p><span>年份季节:</span>[field:protime/]</p>
<p><span>产品数量:</span>[field:procount/]</p>
<p><span>品牌风格:</span>[field:prostyle/]</p>
<p><span>产品说明:</span>[field:description/]</p>
</div>
{/dede:arclist}
<div class="page">{dede:arcpagelist tagid='index'/}</div>
<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>
{dede:arclist tagid='index' pagesize='1' titlelen='24' orderby='pubdate' typeid='15' idlist='' flag=h}
<div class="diyproOne">
<a href="[field:arcurl/]"><img src="[field:litpic/]" class="diyproOne-Proimg" /></a>
<p><span>品牌名称:</span>[field:title/]</p>
<p><span>年份季节:</span>[field:protime/]</p>
<p><span>产品数量:</span>[field:procount/]</p>
<p><span>品牌风格:</span>[field:prostyle/]</p>
<p><span>产品说明:</span>[field:description/]</p>
</div>
{/dede:arclist}
<div class="page">{dede:arcpagelist tagid='index'/}</div>
展开全部
dede:pager:为DEDE增加一个自定义的翻页器
参考资料: http://www.longantree.com/news/jishu/2011/0519/283.html
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询