Open-source java CMS-FreeCMS2.2 model management
Model Management
Supported since FreeCMS 2.0
Adds and deletes fields through the model to adjust the background functions. Supports models such as sites, columns, and information.
Because the operation methods are the same, this document uses the site model as an example.
Click site model from the Management menu on the left to enter.
1. Add
Click Add
Fields are mainly divided into two attributes: basic attributes and Form Verification attributes.
The field name is the field name created in the database. If it is set to test, the system will create the field f_test in the freecms_site_field table and the data type is varchar. The length depends on the maximum number of characters you set, the default value is 500.
Freecms_site_field: stores the site model data.
Freecms_channel_field: stores topic model data.
Freecms_info_field: stores information model data.
The following table types are supported:
Text Box (single line)
Text Box (multiple rows)
Rich Text Editor
Checkbox)
Radio list (radio)
Drop-down list (select)
Date selection box
Date and Time Selection box
The following verification methods are supported:
Chinese
English
Email format
URL format
Phone number
Mobile phone number
Integer
Currency format
Zip code
ID card number
QQ number
Validation of custom Regular Expressions
Enter relevant attributes and click Save.
2. Edit
Select the field to edit and click Edit.
Enter relevant attributes and click Save.
3. Delete
Select the data to be deleted and click Delete.
To prevent misoperation, the system will prompt you whether to delete it. Click "OK" to complete the deletion operation.
4. view results
After a model is added, the system automatically generates the relevant form and verification code. The following is the site setting function that has added custom fields.