Home > CMS Tutorial > DEDECMS > body text

How to batch replace the column file saving directory in DedeCMS

藏色散人
Release: 2020-01-09 09:44:04
Original
2380 people have browsed it

How to batch replace the column file saving directory in DedeCMS

How does DedeCMS batch replace the column file saving directory?

DedeCMS batch replaces the column file saving directory

Recommended study: 梦Weavercms

Sometimes there are too many columns, but you need to modify the saving directory of the columns. Modifying them one by one is really cumbersome and slow. So I thought of a way to batch modify the saving directory of columns. It is batch replacement:

update dede_arctype set typedir =  replace(typedir,"{cmspath}/a/",'{cmspath}/html/')
Copy after login

Replace html with the directory you specify, and run the background SQL command line tool

If you want to batch remove the year, month and day in the article saving path, just run this :

update dede_arctype set namerule =  replace(namerule,"{Y}/{M}{D}/",'')
Copy after login

The above is the detailed content of How to batch replace the column file saving directory in DedeCMS. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template