Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to implement dedecms to delete system custom variables

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article is about how to implement dedecms to delete system custom variables. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.

To modify the corresponding fields in the database, you can delete the variables added by the basic parameters of the system through SQL batch processing, and the method of deleting system-defined variables by dedecms, which is very practical in the process of building dedecms stations.

I. description of the problem:

Through the background system basic parameters to add new variables, some dissatisfied, want to delete and re-create.

2. Solution:

First: execute SQL statements

Execute-system-SQL command line tool in the background of dream weaving, and enter the following command:

Delete FROM dede_sysconfig where varname= "write your own name here"

For example:

Delete FROM dede_sysconfig where varname= "cfg_phone"

Note: the default table prefix here is "dede_". Remember to change the table prefix here to your table prefix. If you haven't changed the prefix, don't change it.

The second kind: delete manually

After entering phpmyadmin, open your database and find the table: dede_sys_config,dede_ is the default table prefix, please look up according to your table prefix and click "Browse" to enter. Generally, the new variable you want to delete is on the last page. After finding the variable you added, tick the previous one, and then click the X to delete it.

Thank you for reading! On how to achieve dedecms delete system custom variables to share here, I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report