本文整理自网络,侵删。
后台文章排序怎么才可以按自己输入的数字排列?如按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']);
更多PHPCMS内容来自木庄网络博客
标签:PHPCMS
相关阅读 >>
phpcms无法读取index.html的解决办法(action does not exist)
phpcms和帝国cms二次开发优缺点分析及站长如何适合自己的cms 推荐
关于phpcms v9投票模块选项排序listorder设定问题修改
更多相关阅读请进入《phpcms》频道 >>
相关推荐
评论
管理员已关闭评论功能...
- 欢迎访问木庄网络博客
- 可复制:代码框内的文字。
- 方法:Ctrl+C。