Next, we will step by step understand how to achieve this goal in the AnQi CMS.

Part 1: Understanding the content model of AnQi CMS

In the AnQi CMS, "Content Model" is the core feature that defines the skeleton of content types.The system is built-in with "Article Model" and "Product Model", which define the basic fields that should be included in articles and products respectively, such as title, content, abstract, thumbnail, etc.However, business requirements often go beyond these standard fields.The strength of Anqi CMS lies in its ability to extend these basic models and even create brand new content models to accommodate a variety of personalized data.

Why do you need to customize the content model?In simple terms, it is to make your content management more precise and efficient.By customizing the content model, you can ensure that the entered content always conforms to business logic, avoiding omissions or confusion.At the same time, this structured content also lays a solid foundation for the precise display on the front-end.

Second part: Back-end Operation of Custom Content Structure

In the Anqi CMS back-end, custom content structure is an intuitive and feature-rich process.

Step 1: Create or edit a content model

Firstly, you need to enter the "Content Management

If you want to add fields to an existing model (such as an article or product), you can directly click on the corresponding model to edit.If your business needs a completely new content type, such as 'activity registration' or 'project case', you can choose 'new model'.

In the model editing or creation page, there are several core fields that need to be paid attention to:

  • Model nameThis is a friendly identification for you and the backend administrator, for example, 'Project Case', 'Recruitment', etc.
  • Model table nameThis is the table name stored in the database, it must be in lowercase English letters. This is an important basis for calling the model data in the front-end template.
  • URL alias:Used to construct URL aliases in pseudo-static rules, and it is also recommended to use lowercase English letters, which will directly appear in the URL structure of your website.

Step two: Add custom fields

Every time you add a field, you need to configure the following properties:

  • Parameter nameThis is the display name of the field when editing content in the background, such as "Project Leader", "Case Time".
  • Call fieldThis is the unique identifier used to call the field data in the front-end template, be sure to use letters, for example `projectManager'}']