PhpCms v9保举位及相干文章相干题目办理要领
PhpCms v9添加新内容(带图片)同时选择保举位题目及相干文章默认排序题目的姑且办理要领 1 、添加新内容(带图片)同时选择保举位(挪用保举位要求有缩略图),必要编辑一次后再能在保举位中挪用出来 姑且要领:phpcmsmodulescontentfieldsposid, 修改: $position_data_db->insert(array('id'=>$this->id,'catid'=>$this->data['catid'],'posid'=>$r,'module'=>'content','modelid'=>$this->modelid,'data'=>$textcontent,'listorder'=>$this->id)); 为: $position_data_db->insert(array('id'=>$this->id,'thumb'=>'1','listorder'=>$this->id)); 不想从头编辑 这是姑且 就算没有缩略图也会在position_data表中 标志thumb 为 1 2、挪用的相干文章默以为升序,切不支持 order 修改: $r = $this->db->select($sql2,'*',$limit,'','id'); 为: $r = $this->db->select($sql2,$order,'id'); {pc:content action="relation" relation="$relation" id="$id" catid="$catid" num="5" order="inputtime DESC" keywords="$rs[keywords]"} (编辑:湖南网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |