Add custom fields to your CMS model

It is for reference only for using Friendpoint CMS.

Using a model to find that the field is not enough, you have to go to the database to add it yourself .

step:

The first step: add fields in the info table

Use phpstudy to open SQL_Front and log in to the corresponding database

Find the table with the suffix _info

Right-click to copy f5 and paste it in, see the last one and change his name

 

Step 2: Add field description information in the attribute table, if you won’t add it, please look at the f1-f2 field information

After adding, clear the cache, you can see it in the background

Open phpmyAdmin and log in to the corresponding database

Find the table with the suffix _ attribute

 Then on the right, find the f6 that you copied before in the field model you want to add and check the following id to know. There will be all models f1-f5 in it, so you need to add pairs. Because I am a newly created model, the field IDs in it are all newly added, so I went to the last page.

Click copy

The first is the id, the second is the field you will call at the time, that is, the previously copied f6 field after you renamed, and the third is the field title displayed in the background, which can be modified in the background.

Then execute it. 

 

Guess you like

Origin blog.csdn.net/tang242424/article/details/111595716