Feature preview

Feature Introduction

Custom content model: How AnQiCMS flexibly defines article structure and fields

AnQiCMS supports custom content models, allowing administrators to define the structure and fields of articles according to business needs. Compared to traditional CMS with fixed templates, this capability is suitable for non-standard content scenarios such as product libraries, case displays, and recruitment information.

Flexibility Custom field Content model

Feature Introduction

Traditional CMS usually provide fixed article templates: title, content, category, tags. This structure is suitable for blogs or news sites, but when a company needs to manage product catalogs, case studies, job information, or course lists, the fixed template is no longer sufficient. AnQiCMS's custom content model feature allows administrators to freely define the structure and fields of content according to actual business needs, without modifying the code and adapting to diverse content scenarios.

What is a content model?

The content model is a structured definition of content types. It describes which fields a particular type of content contains, the data type of each field, whether it is required, and the display order, etc. For example, a 'product' content model may contain the following fields:

Field name Type Required Description
Product Name text Is Full name of the product
Product Model text Is Internal number
Price Number No Reference price
Product image Image Is Main image
Specification parameters Multi-line text No Detailed specifications
Category Drop-down selection Is Product categories

After creating the content model, when the administrator publishes this type of content in the background, the system will generate the corresponding form interface according to the model to ensure that the data structure entered is consistent.

Custom content model configuration of AnQiCMS

In the 'Content Model Management' menu of the AnQiCMS backend, administrators can perform the following operations:

  • Create a new modelEnter the model name (such as 'Product', 'Case', 'Course'), and select the base template to inherit
  • Add fieldsAdd text, numbers, dates, images, dropdown selections, multiple choices, and other field types to the model
  • Set validation rulesDefine field length limits, regular expression validation, and duplicate constraints
  • Adjust display orderDrag and drop field order to determine the presentation order in the editing form
  • Bind categoriesAssociate the model with a specific category, and the articles under this category will automatically use this model

After configuration, when creating articles in the corresponding category, the editor will display input boxes for custom fields, rather than just a rich text main content area.

Suited for non-standard content scenarios

The custom content model is particularly suitable for the following scenarios:

  • Product library: Need to manage model, price, inventory, specifications, etc., non-textual attributes
  • Case display: Need to record customer name, industry, project cycle, achievement indicators, etc., structured data
  • Recruitment information: Need to define position, salary range, work location, requirements for position, etc., fields
  • Course list: Need to include class hours, lecturer, course start time, price, applicable audience, etc., information
  • Event Registration: Collect name, phone, company, position, and other registration form fields

In these scenarios, structured data is more valuable than plain text: it is convenient for filtering, sorting, statistics, and front-end display.

Comparison with traditional fixed templates

Dimension Fixed template CMS Custom content model
Applicable scenarios Blogs, news stations Diversified business systems
Data structure Title + content Define fields as needed
Front-end display Uniform style Layout can be customized by field
Extended cost Code needs to be changed Configuration can be done on the backend
Data reuse Difficult to extract structurally Can be exported directly to Excel/API

For simple sites that only need to publish articles, fixed templates are sufficient; however, for scenarios where content needs to be managed as business data, a custom content model can significantly reduce development costs.

Advice on field type selection

AnQiCMS supports various field types, and the choice should consider the purpose of the data:

  • Text field: Suitable for short strings (names, models, URLs)
  • Multi-line text: Suitable for longer descriptions (introductions, specifications)
  • Numeric field: Suitable for values that can be calculated (prices, quantities, ratings, etc.)
  • Date field: Suitable for publication time, deadline, event time, etc.
  • Image field: Suitable for cover images, product images, avatars, etc.
  • Drop-down selection: Suitable for enumerated values (status, category, level)
  • Multi-select field: Suitable for tags, skill lists, and multi-value attributes

Avoid putting all the information into the rich text content. Structured fields facilitate subsequent data analysis and dynamic rendering on the frontend.

Common questions

Question: Will a custom content model affect existing articles?

Answer: No. The new model only affects articles created when the model is selected. Existing articles retain their original structure. If you need to migrate historical articles to the new model, you can use the batch editing tool to map data field by field.

Question: Can fields be modified after the model is created?

Yes. The administrator can add, delete, or modify the field definitions of the model at any time. However, note that deleting a field will make the historical data of that field invisible (still stored in the database, but not displayed on the front end); changing the field type may cause incompatibility with data format.

Can the content of the custom model be searched?

Yes. AnQiCMS's full-text search function will index the content of the custom fields. The administrator can also configure which fields to participate in the search weight, to improve the ranking of relevant content.

Do developers need to participate in the model configuration?

Answer: No need. The creation of the content model and field configuration is completely done in the background visual interface, and operations personnel or content administrators can operate. It only involves development work when a new field customization display template is needed on the front end.