Open source Java cms-freecms2.2 Model Management

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.