Skip to main content
 Web开发网 » 站长学院 » 织梦教程

dedecms教程:列表页标题加页码的方法

2020年09月12日7670百度已收录

文章介绍

 

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

 

找到(大约400行)

$this->ParseTempletsFirst();

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

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

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

 

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


 

评论列表暂无评论
发表评论
微信