织梦DedeCMS列表页调用当前页码的方法

打开 include/arc.listview.class.php 文件。

找到大约400行附近的代码:

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

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

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

在列表页模板中用 {dede:field.yema /} 调用即可显示当前页码。

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。