How can Dreamweaver replace all article sources and authors in batches?
Dreamweaver DEDECMS method to batch replace the "source" and "author" of all articles
First step:
Open: dede (Backend directory) \templets\article_add.htm (publish ordinary template) and article_edit.htm (modify ordinary template)
Recommended learning: dedecms tutorial
Place:
<input name="source" type="text" id="source" style="width:160px" value="<?php echo $source; ?>" size="16"/>
and:
<input name="writer" type="text" id="writer" style="width:120px" value="<?php echo $arcRow["writer"]?>"><input name="selwriter" type="button" id="selwriter" value="选择" />
were changed to:
<input name="source" type="text" id="source" style="width:160px" value="" size="16"/>
and:
<input name="writer" type="text" id="writer" style="width:120px" value="织梦猫"> <input name="selwriter" type="button" id="selwriter" value="选择" />
(replace: "" above with your own source, " Replace "Dreamweaver" with your own author.)
Step 2: Log in to the backend--template--default template management--article_article.htm (article content page template)
:
<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 -->
Changed to:
<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>
(Replace: "" with your own source and "Dreamweaver Cat" with your own author.)
Then: Save
The third step: Content maintenance--select all--review
The third step: generate--one-click update website--update all--start update
You no longer need to select "source" and "author" when publishing new articles in the future
The above is the detailed content of How to batch replace all article sources and authors in DreamWeaver. For more information, please follow other related articles on the PHP Chinese website!

织梦导入css的方法:1、将HTML模板文件放到“templets”文件夹中;2、将HTML文件的后缀改成“.htm”;3、在原先的样式路径前加上“{dede:global.cfg_templets_skin/}”即可。

数据库是网站运行的核心,存储着用户数据、文章内容等重要信息,因此在网站运营过程中,数据库文件的备份和恢复显得尤为重要。对于使用织梦CMS搭建的网站来说,数据库文件的恢复同样是一项关键任务。本文将详细介绍织梦CMS数据库文件的恢复方法,并提供具体的代码示例,帮助用户迅速恢复网站数据,保障网站正常运行。一、备份数据库文件在恢复数据库文件之前,首先需要确保已经进行

织梦是一个非常著名的CMS,由于其简单易用的特点被许多网站使用,它的后台采用php进行开发,而最新的官方版本是织梦php 5.7。在本文中,我们将探讨织梦php5.7版本的新特性和优势。

织梦是一款非常流行的网站建设系统,其架构是基于PHP语言构建的。因此,织梦需要PHP来运行。那么,具体来讲,织梦需要多少个PHP呢?这并不是一个简单的问题。本文将会从以下几个方面介绍织梦需要的PHP版本和组件数量。

安装织梦时遇到问题是一个常见的情况,其中一个可能的问题就是无法成功安装php7.0。在本文中,我们将介绍如何解决这个问题。

cms不是织梦,cms是指内容管理系统,而织梦只是cms的一种;织梦cms就是指织梦内容管理系统,而内容管理系统是一种位于WEB前端和后端办公系统或流程之间的软件系统;cms具有许多基于模板的优秀设计,可以加快网站开发的速度和减少开发的成本。

织梦需要PHP 5.2版本及以上,其安装方法:1、首先安装PHP并配置好环境;2、下载DedeCMS安装包,并解压到网站根目录;3、打开网站URL,按照提示完成安装;4、安装完成后,通过http://localhost/yourwebsite访问即可访问到织梦后台。

织梦CMS是一款基于PHP5开发的开源内容管理系统,被广泛应用于网站建设领域。掌握织梦PHP5的关键要点,对于开发者来说非常重要。本文将介绍一些关键要点,并提供具体的代码示例,帮助读者更好地理解和应用织梦PHP5。一、文件包含在织梦CMS的开发中,经常需要在不同的文件之间进行数据共享和代码重用。PHP的文件包含功能是解决这个问题的有效方法。在织梦CMS中,常


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

SublimeText3 Linux new version
SublimeText3 Linux latest version

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

WebStorm Mac version
Useful JavaScript development tools

SublimeText3 English version
Recommended: Win version, supports code prompts!
