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:
Then open it In the flag editing interface, we add a new attribute z and click Save, as shown below:
4. Then open the table dede_arcatt, click "Insert" to add a piece of data, the content is as follows Picture:
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!