$query = "Select arc.*,tp.reid,tp.typedir,ch.addtable from `dede_archives` arc left join dede_arctype tp on tp.id=arc.typeid left join dede_channeltype as ch on arc.channel = ch.id where arc.id='$aid' ";
$this->Fields = $this->dsql->GetOne($query);
替换为
复制代码
代码如下:
$query = "Select arc.*,tp.reid,tp.typedir,tp.typeimg,ch.addtable
from `dede_archives` arc
left join dede_arctype tp on tp.id=arc.typeid
left join dede_channeltype as ch on arc.channel = ch.id
where arc.id='$aid' ";
$this->Fields = $this->dsql->GetOne($query);
OK,给织梦给栏目增加缩略图的方法就介绍到这了,有需要的朋友可以自行参考修改调整。