Project Address: http://www.freeteam.cn/
Model Management
Support Starting from FREECMS 2.0
Add the deletion field through the model, adjust the background function, support the site, column, information and other models.
Due to the same method of operation, this document is illustrated with the site model as an example.
From the left Admin menu, click Site Model to enter.
1. Add
Click the Add button
A field is mainly divided into two parts: a basic property, and a form validation attribute.
Where the field name is the field name created in the database, as set to test, the system creates the field f_test in the Freecms_site_field table, the data type is varchar, the length depends on the maximum number of characters you set, and the default is 500.
Freecms_site_field: Saves the site model data.
Freecms_channel_field: Save column model data.
Freecms_info_field: Saves information model data.
The supported form types are:
text box (single line)
text box (multiple lines)
Rich Text Editor
Check List (checkbox)
Radio List (radio)
Drop-down list (select radio)
Date selection Box
Date Time selection box
The supported authentication methods are:
Chinese
English
Email format
URL format
Phone number
Mobile phone number
Integer
Currency format
Zip code
ID number
QQ number
Custom Regular Expression validation
After filling in the relevant properties, click Save.
2. Editing
Select the field you want to edit and click the Edit button
After filling in the relevant properties, click Save.
3. Delete
Select the data you want to delete and click the Delete button.
In order to prevent misoperation, the system will prompt the user whether to delete, click "OK" to complete the delete operation.
4. View Effects
After the model has been added, the system automatically generates related forms and validation processing code. The following is a site Setup feature where custom fields have been added.
Open source Java cms-freecms2.2 Model Management