As a senior CMS website operation person in the information security field, I fully understand that the structure of the content is crucial for attracting and retaining users.The “model” feature introduced in the AnQiCMS v2.1.1 version is a leap forward in our content management work.It liberates us from traditional fixed content frameworks, endowing content structure with unprecedented flexibility and customization, thereby enabling more precise fulfillment of readers' diverse needs.
English CMS v2.1.1 Model Function: The Foundation for Building Flexible Content Structures
In the daily operation of the website, we often encounter diverse content types and complex information structures.In the past, we may have had to adapt through flexibility or compromise to existing content publishing models.However, one of the core updates in AnQiCMS v2.1.1 version - the 'model' feature, has completely changed this situation.It allows us to create dedicated structured blueprints for different types of content, thus achieving truly personalized content display and efficient management.This feature not only enhances the adaptability of the system, but also directly contributes to the production of higher quality, more user-centric content.
Understanding the core value of the content model
The content model, as the name implies, is a set of rules defining the structure of a specific content type.It can be considered as the 'skeleton' or 'data template' for each category of content on your website.For example, a common "articleBy customizing the content model, you can create an unlimited variety of content types, such as 'event list', 'team member introduction', 'service project details', and more, ensuring that each piece of content is presented in the most appropriate and complete manner to convey its information.This meticulous structural management not only standardizes the content creation process but also provides a solid foundation for front-end display and SEO optimization.
Access and Manage Content Models
To start using this feature, you need to log in to the AnQiCMS backend management interface.In the left navigation menu, find the "Content ManagementEnter the content model management page, you will see the system default built-in "article model" and "product model".These built-in models can be modified according to your actual needs, but cannot be deleted.For the models you create customly, you have full editing and deletion permissions.
What needs to be emphasized here is that deleting a content model isirreversibleThe operation, and willPermanently delete all documents under this model and the associated document categoriesTherefore, please make sure to confirm carefully and perform data backup before executing the delete operation to avoid unnecessary data loss.
Create and define a new content model
Create a new content model is the first step in customizing the content structure, with a straightforward and powerful workflow. After clicking the "Add Model" button, you will enter the model definition interface, where you need to fill in the following key information:
- Model name:This is a user-friendly display name, which will be displayed in the background management interface and may also appear as a level name in the breadcrumb navigation on the front end.
- Model Table Name:This is a crucial field, it determines the table name in the database where your custom field content is stored.Please make sure to use lowercase letters.If other characters are entered, it may cause the content to be displayed incorrectly, even triggering system errors.
- URL Alias:This field is alsoonly supports lowercase English lettersIt is used to call the model in pseudo-static rules, directly affecting the URL structure of your website, making it more concise and SEO-friendly.
- Title Name:This setting will change the placeholder text in the title input box when you publish the model content.For example, if your model is 'product', you can set this to 'product name' to guide content creators.
Add custom fields to the model
Custom fields are the core highlights of the content model feature, making your content structure truly unique.You can add any number of custom fields based on the specific needs of different content types.For example, the "event model" may require fields such as "event date
- Parameter name:This is the display name of the field in the background editing interface, for example, 'Article Author', 'Product Number'.
- Field call:This is the name used when referencing this field in the template, as well as the actual field name in the database.Please use English letters.for example
authororproduct_sku. - Field Type:AnQiCMS provides various field types to adapt to different data formats, including:
- Single-line text:Suitable for short text input, such as author name.
- Numbers:Only allows input of numbers, such as price, inventory.
- Multi-line text:Suitable for long text input, such as detailed descriptions.
- Single selection (Radio):Allow to select one from the preset options.
- Multiple Selection (Checkbox):Allow to select multiple from the preset options.
- Dropdown selection (Select):Provide a dropdown menu for user selection.
- Mandatory:Mark this field as a mandatory item for content publishing.
- Default value:Provide a preset value for the field. For single-choice, multiple-choice, and dropdown selection types, you need to enter each option here.Each line has an optionThe system will automatically parse it.
Create and organize content using the content model
When you define the custom content model, its effect will be reflected in the entire process of content creation and management.On the "Add DocumentIn AnQiCMS, each category must be associated with a specific content model.Once you have selected the category associated with your custom model, the system will immediately load and display all custom fields you have defined for that model in the "Other Parameters" collapsible box.This means that content creators will accurately and correctly fill in the required information based on the content model of the selected category, thus ensuring the structurization and consistency of each piece of content.
This model is closely related to classification and also determines the frontend