Click the “Add” button to open the extended model form window. Fill in the model name, code, and data table, then save the settings. The model code should be unique for each site. It’s recommended to use easily recognizable English or pinyin combinations, so that it can be used effectively in templates.
How to customize the data table? Just meet the following two conditions:
Table names should be in the format of cms_exd_ It serves as a prefix.
Including model_id, data_type, data_id Three fields serve as combined primary keys.
Field types are applicable only to default data tables. By default, default data tables contain multiple fields of different types, each with a certain number of instances. Once the usage of a particular type of field reaches the maximum limit, it becomes impossible to add model fields of that type.
The control type determines the appearance of the model on the site/category/content editing page. When dropdown menus or single/multiple choice boxes are selected, it’s possible to specify the source of available options. The sources can be either manually configured or based on dictionary data. Dictionary data sources are defined as follows: System Management > Dictionaries Menu maintenance.
Reference example of template tags: