很多在织梦dedecms首页调用图片集中的图片,在列表页也会调用,但是在文章内容页的时候就调用不来了,修改几个文件其实也可以调用出来,注意文件要备份。 打开\include\arc.archives.class.php
if($this->ChannelUnit->ChannelInfos['issystem']!=-1) 将 $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); 其中,typeimg字段是在首页调用图片集新增的字段,如果你不是这个字段就主要在以上代码中要修改。
本文织梦dedecms文章页调用图片集中的图片到此结束。十年后所有难过都是下酒菜。小编再次感谢大家对我们的支持!