### [phpcms推荐位无法排序怎么办](https://www.prosaas.cn/article/1990) **Published:** 2020-07-14T02:20:45 **Author:** 5201314 **Excerpt:** phpcms无法排序的解决办法:首先找到并打开“content/content.php”文件;然后找到文中第4… > phpcms无法排序的解决办法:首先找到并打开“content/content.php”文件;然后找到文中第454行的内容;接着更改推荐排序;最后保存修改过后的文件即可。 ![](//zhiqipro.oss-cn-beijing.aliyuncs.com/2023/12/20231212120502119.jpg) 解决phpcms V9 推荐位无法排序 /phpcms/modules/content/content.php 454行 /\*\* \* 排序 \*/ public function listorder() {   if(isset($\_GET\['dosubmit'\])) {     $catid = intval($\_GET\['catid'\]);     if(!$catid) showmessage(L('missing\_part\_parameters'));     $modelid = $this->categorys\[$catid\]\['modelid'\];     $this->db->set\_model($modelid);     foreach($\_POST\['listorders'\] as $id => $listorder) {       $this->db->update(array('listorder'=>$listorder),array('id'=>$id));         //更改推荐排序开始--新添加的         $r = $this->db->get\_one(array('id'=>$id));         if($r\['posids'\]){           $this->db\_config = pc\_base::load\_config('database');           $tablepre = $this->db\_config\['default'\]\['tablepre'\];           $this->db->table\_name = $tablepre."position\_data";           $this->db->update(array('listorder'=>$listorder),array('id'=>$id,modelid=>$modelid));         }         //更改推荐排序结束--     }     showmessage(L('operation\_success'));   } else {     showmessage(L('operation\_failure'));   } } 推荐:《phpcms教程》 以上就是phpcms推荐位无法排序怎么办的详细内容,更多请关注知企PROSAAS其它相关文章! **Tags:** php, PHPCMS **Categories:** PHPCMS ---