<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

dedecms将文章第一张图片设置为文章缩略图的方法

时间:2020-12-10

织梦dedecms有时勾选自动生成缩略图却无效,造成不能获取缩略图,下面2句sql可以解决这个问题:

1 update dede_archives,dede_addonarticle set dede_archives.litpic=substring(dede_addonarticle.body,INSTR(dede_addonarticle.body,'src=\"')+5,100) where dede_archives.id=dede_addonarticle.aid;
2 update dede_archives set litpic=substring(litpic,1,instr(litpic,'\"' )-1);

将以上sql语句在后台的sql命令行工具里面运行一下即可,注意语句里面的“dede_”改为自己的数据库前缀,系统默认为dede_。

另外注意:之前设置的文章缩略图路径将全部替换,截图文章第一张图片为缩略图路径(无图则空白)。

0
首页
案例
关于
联系