Home  >  Article  >  CMS Tutorial  >  How to add custom attributes in DEDECMS

How to add custom attributes in DEDECMS

王林
王林Original
2019-11-08 13:14:162199browse

How to add custom attributes in DEDECMS

Principle of adding custom attributes:

Change the flag attribute in the table dede_archives in the database.

Steps to add custom attributes using phpmyadmin:

1. Before changing the database, back up the database first, so that if the change fails, you can restore it to the previous state. state.

2. Using phpmyadmin to change the database is more intuitive and convenient for novices to see the changes directly, so it is recommended that novices use this method.

3. Enter phpmyadmin, open dede_archives, click "Structure", find the flag, and click the change button behind the flag, as shown below:

How to add custom attributes in DEDECMS

Then open it In the flag editing interface, we add a new attribute z and click Save, as shown below:

How to add custom attributes in DEDECMS

4. Then open the table dede_arcatt, click "Insert" to add a piece of data, the content is as follows Picture:

How to add custom attributes in DEDECMS

Done!

Recommended tutorial: dedecms tutorial

The above is the detailed content of How to add custom attributes in DEDECMS. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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