In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you the method of weaving dream arclist tags to achieve pagination. I hope you will gain a lot after reading this article. Let's discuss it together.
Dream weaving arclist tags how to achieve paging?
The method of realizing pagination with Dream Weaving arclist tags
First of all, it must be added in front of the home page.
Step 2: the following javascript code must be introduced:
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;}
Step 3: tagid and pagesize parameters must be included in the arclist tag. The first is the cache name, and the second is the number of entries per page; for example:
{dede:arclist tagid='index' pagesize='5'} [field:title/] [field:info/]...
{/ dede:arclist}
Step 4: the arcpagelist tag must exist, and the cache parameter tagid must be declared and the cache parameter must be consistent with the tagid in arclist. For example:
{dede:arcpagelist tagid='index'/}
Now paste a complete code for your test reference:
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;} {dede:arclist tagid='index' pagesize='5'} [field:title/] [field:info/].
{/ dede:arclist} {dede:arcpagelist tagid='index'/} after reading this article, I believe you have a certain understanding of the method of weaving dream arclist tags to achieve paging, want to know more about it, welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.