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

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

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

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

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

 

找到(大约400行)

$this->ParseTempletsFirst();

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

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

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

 

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


 

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