织梦dedecms列表页标题加页码的方法 。
1、打开 include/arc.listview.class.php 文件
找到(大约400行)
ParseTempletsFirst(); $this->ParseDMFields($this->PageNo,0);
在此代码前面添加如下代码
Fields['yema'] = $this->PageNo;
2、在列表页模板中用{dede:field.yema /}调用,将此标签放到要调用的地方即可 。
织梦dedecms列表页标题加页码的方法 。
1、打开 include/arc.listview.class.php 文件
找到(大约400行)
ParseTempletsFirst(); $this->ParseDMFields($this->PageNo,0);
在此代码前面添加如下代码
Fields['yema'] = $this->PageNo;
2、在列表页模板中用{dede:field.yema /}调用,将此标签放到要调用的地方即可 。
【声明】:唐山站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。