大佬教程收集整理的这篇文章主要介绍了修改PHPCMS V9相关文章order排序功能的方法分享,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
BACkground-color:#FBFBFB;font-size:14px;margin-top:20px;margin-bottom:20px;padding:0px;border:0px;outline:0px;vertical-align:top;text-indent:2em;color:#252525;font-family:新宋体,'courier new',courier,monospace;line-height:23px;white-space:normal;">
BACkground-color:#FBFBFB;font-size:14px;margin-top:20px;margin-bottom:20px;padding:0px;border:0px;outline:0px;vertical-align:top;text-indent:2em;color:#252525;font-family:新宋体,monospace;line-height:23px;white-space:normal;"> BACkground-color:transparent;margin:20px 0px;padding:0px;border:0px;outline:0px;vertical-align:top;word-wrap:break-word;text-indent:2em;">修改方法:
BACkground-color:#FBFBFB;font-size:14px;margin-top:20px;margin-bottom:20px;padding:0px;border:0px;outline:0px;vertical-align:top;text-indent:2em;color:#252525;font-family:新宋体,monospace;line-height:23px;white-space:normal;">
打开根目录下的
db->SELEct($sql2,'*',$limit,'','id');
BACkground-color:#FBFBFB;font-size:14px;margin-top:20px;margin-bottom:20px;padding:0px;border:0px;outline:0px;vertical-align:top;text-indent:2em;color:#252525;font-family:新宋体,monospace;line-height:23px;white-space:normal;"> 修改为:
BACkground-color:#FDFDDF;font-size:13px;margin:8px auto;padding:4px;border:1px dashed #CCCCCc;outline:0px;vertical-align:top;font-family:Tahoma,$order,monospace;line-height:23px;white-space:normal;"> BACkground-color:transparent;margin:20px 0px;padding:0px;border:0px;outline:0px;vertical-align:top;word-wrap:break-word;text-indent:2em;">PC标签格式如下:BACkground-color:#FDFDDF;font-size:13px;margin:8px auto;padding:4px;border:1px dashed #CCCCCc;outline:0px;vertical-align:top;font-family:Tahoma,sans-serif;color:#009900;width:612px;line-height:19px;word-wrap:break-word;overflow:auto;">{pc:content action="relation" relation="$relation" id="$id" catid="$catid" num="5" order="inputtime DESC" keywords="$rs[keywords]"}BACkground-color:#FBFBFB;font-size:14px;margin-top:20px;margin-bottom:20px;padding:0px;border:0px;outline:0px;vertical-align:top;text-indent:2em;color:#252525;font-family:新宋体,monospace;line-height:23px;white-space:normal;"> 按发布时间排序:order="inputtime DESC"
BACkground-color:#FBFBFB;font-size:14px;margin-top:20px;margin-bottom:20px;padding:0px;border:0px;outline:0px;vertical-align:top;text-indent:2em;color:#252525;font-family:新宋体,monospace;line-height:23px;white-space:normal;"> 按ID降序排序:order="id DESC"
BACkground-color:#FBFBFB;font-size:14px;margin-top:20px;margin-bottom:20px;padding:0px;border:0px;outline:0px;vertical-align:top;text-indent:2em;color:#252525;font-family:新宋体,monospace;line-height:23px;white-space:normal;"> 按自己的需求对order排序类型作调整,更新一下系统缓存,就OK了。
大佬总结
以上是大佬教程为你收集整理的修改PHPCMS V9相关文章order排序功能的方法分享全部内容,希望文章能够帮你解决修改PHPCMS V9相关文章order排序功能的方法分享所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。