织梦怎样批量替代一切文章泉源和作者?
织梦DEDECMS批量替代一切文章“泉源”和“作者”的要领
第一步:
翻开:dede(背景目次)\templets\article_add.htm (宣布一般模板)和article_edit.htm(修正一般模板)
引荐进修:dedecms教程
离别把:
<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="" size="16"/>
和:
<input name="writer" type="text" id="writer" style="width:120px" value="织梦猫"> <input name="selwriter" type="button" id="selwriter" value="挑选" />
(上面把:“”换成你本身的泉源,“织梦吧”换成你本身的作者。)
第二步:上岸背景--模板--默许模板治理--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><scriptsrcscriptsrc="{dede:field/}/count.php?view=yes&aid= {dede:fieldname='id'/}&mid={dede:field/}" type='text/javascript'language="javascript"> </script>次</div& gt;<!-- /info -->
改成:
<small>时候:</small>{dede:field.pubdate function="MyDate('Y-m-dH:i',@me)"/} <small>泉源:</small> <small>作者:</small>织梦猫<small>点击:< /small> <script src="{dede:fieldname='phpurl'/}/count.php?view=yes&aid= {dede:field/}&mid={dede:field/}" type='text/javascript'language="javascript"></script>次</div>
(上面把:“”换成你本身的泉源,“织梦猫”换成你本身的作者。)
然后:保留
第三步:内容保护--全选--考核
第三:生成--一键更新网站--更新一切--最先更新
今后宣布新文章时也不必再选“泉源”和“作者”了
以上就是织梦怎样批量替代一切文章泉源和作者的细致内容,更多请关注ki4网别的相干文章!