dede list列表里显示当前是第几条记录

来源:互联网 发布:scopus数据库简介 编辑:程序博客网 时间:2024/05/02 05:00
1.在include/arc.archives.class.php  
找到: $listdd.= "<span class=\"thisclass\">"  大概1086 行
之后加上:$GLOBALS['currentpage']=$j; //获取当前页放入全局变量
2.使用方法如下,翻到多少页都会显示当前记录是查询的列表里第几条记录:
{dede:list orderby='weight' orderway='desc' pagesize='6' titlelen='88'}  
 [field:global.autoindex  runphp='yes']                 @me=($GLOBALS['currentpage'])*6+@me;                [/field:global.autoindex]
[field:title/]

{/dede:list}

如每页显示6 条,注:list 第一次循环

($GLOBALS['currentpage'] 为null..
第二页效果如下:


0 0