Extended model usage

Create new extended models

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.

668276570030149.png

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.

Edit extended model fields

  • 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.

Manual sources

668276694515781.png

Dictionary data

668276744364101.png

Configure the site/category/content extension model

  1. Site extension model configuration (Set this option in the Extended Configuration tab during the site editing process).

668276843245637.png

  1. Column/content extension model configuration (Set this option on the column editing page, in the Extended Configuration tab.)

668276874137669.png

Edit extended model data

  1. Site Extension Model (located at the bottom of the Basic Information tab during site page editing).

668276908064837.png

  1. Column Extension Model (located below the basic information tab on the column page)

668276955054149.png

  1. Content Extension Model (Content Editing Page, below the title)

668277002084421.png

Reference the extended model data in the template.

Reference example of template tags:

<@cms_xmodel_field>

<@cms_xmodel_data>

On this page