以下修改是针对dedecms 后台发布后的文章不能进行编辑修改,点击编辑出现一片空白的解决办法希望能帮助的大家.
找到该文件dede/archives_do.php,大约在39行(dede5.7版本).
- if($dopost=='editArchives')
- {
- $query = "SELECT arc.id,arc.typeid,ch.maintable,ch.editcon
- FROM `#@__arctiny` arc
- LEFT JOIN `#@__arctype` tp ON tp.id=arc.typeid
- LEFT JOIN `#@__channeltype` ch ON ch.id=arc.channel
- WHERE arc.id='$aid' ";
- $row = $dsql->GetOne($query);
- $gurl = $row['editcon'];
- if($gurl=='') $gurl='article_edit.php';
- header("location:{$gurl}?aid=$aid");
- exit();
- }
将上面的替换为一下代码:
- //编辑文档
- function editArchives(){ }
- ---------------------------*/
- if($dopost=='editArchives')
- {
- $query = "SELECT arc.id,arc.typeid,ch.maintable,ch.editcon
- FROM `#@__arctiny` arc
- LEFT JOIN `#@__arctype` tp ON tp.id=arc.typeid
- LEFT JOIN `#@__channeltype` ch ON ch.id=arc.channel
- WHERE arc.id='$aid' ";
- $row = $dsql->GetOne($query);
- $gurl = $row['editcon'];
- if($gurl=='') $gurl='article_edit.php';
- echo '';//开源软件:Vevb.com
- exit();
- }
新闻热点
疑难解答