Project address: http://www.javaz.cn
Model management
Supported since FreeCMS 2.0
Add and delete fields through the model, adjust the background functions; support models such as sites, columns, and information.
Supported since FreeCMS 2.5
Form submission type adds file upload.
Since the operation methods are the same, this document uses the site model as an example.
Click on Site Model from the left management menu to enter.
1. Add
Click the Add button
The field is mainly divided into two parts, one is the basic attribute and the other is the form validation attribute.
The field name is the field name created into the database. If it is set to test, the system will create a field f_test in the freecms_site_field table, the data type is varchar, and the length depends on the maximum number of characters you set, the default is 500.
freecms_site_field: Save site model data.
freecms_channel_field: Save column model data.
freecms_info_field: Save information model data.
The supported form types are:
Text box (single line)
Text box (multi-line)
rich text editor
Checklist (checkbox)
radio list
Drop-down list (select radio)
date selection box
Date time selection box
Supported since FreeCMS 2.5
File Upload
The supported authentication methods are:
Chinese
English
Email format
URL pattern
telephone number
cellphone number
integer
currency format
zip code
identification number
QQ number
Custom Regular Expression Validation
Supported since FreeCMS 2.3
Added dictionary attribute, the options of check list, radio list, and drop-down list can be configured directly through dictionary. If this attribute is set to "Use optional configuration", the configuration of optional attribute will be used. If dictionary classification is selected , the system prefers to use a dictionary to generate optionals.
After filling in the relevant properties, click Save.
2. Edit
Select the field 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 deletion operation.
4. Check the effect
After adding the model, the system will automatically generate the relevant form and validation processing code. The following are the site settings functions that have added custom fields.