phpcms v9更改后台文章排序的方法
时间:2021-01-19日 来源: 作者:
后台文章排序怎么才可以按自己输入的数字排列?如按4,3,2,1,从大到小排列?
实现方法如下:
修改文件: phpcms\modules\content 中的 content.php
复制代码
$datas = $this->db->listinfo($where,'id desc',$_GET['page']);
代码如下:
$datas = $this->db->listinfo($where,'id desc',$_GET['page']);
改成
复制代码
$datas = $this->db->listinfo($where,'listorder ASC, id desc',$_GET['page']);
代码如下:
$datas = $this->db->listinfo($where,'listorder ASC, id desc',$_GET['page']);
相关文章
推荐文章
热门文章