Project Address:http://www.freeteam.cn/
Starting with the FREECMS 2.0 support
Through the model to increase the deletion of fields, adjust the background function, support sites, columns, information and other models.
This document is illustrated with the site model as an example, because of the same method of operation.
Click on the site model to enter from the left Management menu.
Add to
Click the Add button
Fields are mainly divided into two-part properties, one for basic properties and the other for form validation properties.
Where the field name is the field name created to the database, and if set to test, the system creates the 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, and the default is 500.
Freecms_site_field: Save the site model data.
Freecms_channel_field: Save column model data.
Freecms_info_field: Save the Information model data.
The types of forms supported 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
Starting with the FREECMS 2.3 support
With the addition of dictionary properties, the options for the check list, the Radio list, and the Drop-down list can be configured directly from the dictionary, and if this property is set to use configurable option, the configuration of the option property is used, and if a dictionary classification is selected, the system takes precedence over the dictionary to generate the options
Fill in the relevant properties and click Save.
Edit
Select the field you want to edit and click the Edit button
Fill in the relevant properties and click Save.
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.
View Effects
The system automatically generates related forms and validation processing code after the model has been added. The following is a site Settings feature that has been added to a custom field.