本站资源均来自互联网,仅供学习与参考,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
Copyright @ 2015-2020 织梦园 版权所有
Power by DedeCms
鲁ICP备15039853号-1
鲁公网安备 37132302000249号
模板标签 TAG标签 网站地图 XML地图 今日更新 返回顶部
织梦dedecms在列表页中是肯定会有页码的,在页码的样式上也有很多种效果,在使用默认调用页码的标签的时候程序文件中已经对调用的代码做了样式的设置,所以想要修改页码的样式还要从修改默认程序文件入手。
我们在调用页码使用的标签:
{dede:pagelist listitem="info,index,end,pre,next,pageno,option" listsize="5"/} |
修改的方法:
打开include/arc.listview.class.php
删除219行的代码:$this->ParseTempletsFirst();
在247行$this->ParseDMFields($this->PageNo,1);前添加
$this->Fields['pagexx'] = $this->PageNo;
$this->ParseTempletsFirst();
//动态页的修改方法
在287行if((empty($this->PageNo) || $this->PageNo==1) 前添加
$this->Fields['pagexx'] = $this->PageNo;
//list_article.htm模板的修改方法
<title>{dede:field.title/} / 第{dede:field.pagexx /}页</title>