织梦列表页标题加页码的方法

织梦dedecms列表标题页码方法

1、打开 include/arc.listview.class.php 文件
 

找到(大约400行)

$this->ParseTempletsFirst();

$this->ParseDMFields($this->PageNo,0);

在此代码前面添加如下代码

$this->Fields['yema'] = $this->PageNo;

 

2、在列表页模板中用{dede:field.yema /}调用,将此标签放到要调用的地方即可 。

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/00fef8599b8d15023806ed04409b897d.html