<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">

观点

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

织梦cms文章如没有上传图片,则自动替换为百度/谷歌广告的方法

时间:2020-12-16

织梦DedeCMS发布文档时有的上传有图片,有的没有图片,没有图片的文档用百度/谷歌广告图片替换,使文章页显示更一致和美观。

方法如下:

打开文章模板文件:article_article.htm

找到文章内容标签:

<table width='100%'>
     <tr>
         <td>{dede:field.body/}(责任编辑: {dede:adminname/})</td>
     </tr>
</table>

将原来的文章内容标签:{dede:field.body/}

替换为:

{dede:field name='body' runphp='yes'}
     if(strpos(@me,'img')) @me=@me;
     else @me='<div style="float:right;">谷歌广告放在这里面</div>'.@me;

    0
    首页
    案例
    关于
    联系