采集后如何快速批量修改或替換文章的作者和來源?
已經采集好并已生成HTML了的文章或以前已發布的文章如何快速批量替換所有“來源”和“作者”呢?
第一步:
打開:dede(臺目錄) empletsarticle_add.htm (發表普通模板)和article_edit.htm(修改普通模板)
分別把:
<input name="source" type="text" id="source" style="width:160px" value="<?php echo $source; ?>" size="16"/>
和:
<input name="writer" type="text" id="writer" style="width:120px" value="<?php echo $arcRow["writer"]?>"><input name="selwriter" type="button" id="selwriter" value="選擇" />
分別改為:
<input name="source" type="text" id="source" style="width:160px" value="www.veryhuo.com" size="16"/>
和:
<input name="writer" type="text" id="writer" style="width:120px" value="網"><input name="selwriter" type="button" id="selwriter" value="選擇" />
(上面把:“www.veryhuo.com”換成你自己的來源,“網”換成你自己的作
者。)
第二步:登陸后臺--模板--默認模板管理--article_article.htm(文章內容頁模板)
把:
<small>時間:</small>{dede:field.pubdate function="MyDate('Y-m-dH:i',@me)"/}<small>來源:</small>{dede:field.source/} <small>作者:</small>{dede:field.writer/} <small>點擊:</small><scriptsrc="{dede:field name='phpurl'/}/count.php?view=yes&aid={dede:fieldname='id'/}&mid={dede:field name='mid'/}" type='text/javascript'language="javascript"></script>次</div><!-- /info -->
改為:
<small>時間:</small>{dede:field.pubdate function="MyDate('Y-m-dH:i',@me)"/}<small>來源:</small>www.veryhuo.com<small>作者:</small>網<small>點擊:</small><script src="{dede:fieldname='phpurl'/}/count.php?view=yes&aid={dede:field name='id'/}&mid={dede:field name='mid'/}" type='text/javascript'language="javascript"></script>次</div>
(上面把:“www.veryhuo.com”換成你自己的來源,“網”換成你自己的作者。)
然后:保存
第三步:內容維護--全選--審核
第三:生成--一鍵更新網站--更新所有--開始更新
這樣就全OK了,以后發布新文章時也不用再選“來源”和“作者”了。