Home > CMS Tutorial > DEDECMS > body text

How to add custom attributes in DEDECMS

王林
Release: 2019-11-08 13:14:16
Original
2215 people have browsed it

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!

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