As an experienced website operator who deeply understands the operation of AnQiCMS, I know that the adaptability of the content model to the structure and business needs of the website is crucial.The Anqi CMS excels in the flexibility of content models, allowing us to deeply customize according to specific business scenarios, thus efficiently managing and displaying diverse content.
Core advantages of Anqi CMS content model
AnQi CMS places the core of content management on top of its flexible content model.System is built-in with "Article Model" and "Product Model", which provide general content structures for publishing blog posts, news information, or product information.However, this is just a starting point.The AnQi CMS gives us the ability to customize, modify, and even extend these content models based on business characteristics, to accurately capture and present specific types of information.This flexibility is the key to APT CMS adapting to the needs of small and medium-sized enterprises, self-media operators, and multi-site management.
The core custom options of the content model
Customizing the content model mainly involves adjusting the basic properties of the model itself and adding exclusive fields for it.
Firstly, we can adjust the basic properties of the content model to better fit the business identification and website structure. This includes:
Model name: This is the Chinese name displayed in the background management interface and front-end breadcrumb navigation of the content model, which is convenient for operation personnel to identify and manage it directly.
Model table name: This is the table name where the content model data is stored in the database.To ensure the normal operation of the system and data consistency, this name must be used with English lowercase letters.{module}Variables are reflected in the link, which helps to construct SEO-friendly URL structures.
Title Name: This option allows us to customize the prompt text for the title field when publishing content.For example, in a "product model
Deep customization: Add exclusive fields to the content model
The most powerful custom capability of the content model is reflected in adding "Content Model Custom Fields".These fields allow us to go beyond traditional titles and text, capturing specific structured data for different types of content.
Parameter name: This is the Chinese name of the field displayed in the backend editing interface, for example, 'Article Author', 'Product SKU', 'Property Area', etc.
Field Name: This is the English name of the field used for storage in the database and for calling in templates, for example,author/sku/area。
Field Type: AutoCMS provides various field types to meet the needs of different data entry and display requirements:
Single-line text: Suitable for scenarios where a short piece of text is needed, such as product model, brand name, or event slogan, usually limited to 250 characters. Number: Designed specifically for numeric data, such as product prices, inventory quantities, the number of bedrooms in real estate, or the number of participants in an event.Multi-line text: Used for entering long descriptive text, such as product detailed feature introductions, property feature descriptions, or event rule explanations. Single choice: Used when the user is required to select one option from a series of predefined choices, such as product color, size, or property status (for sale, sold).The content of the option is set in the "Default value", one option per line. Multiple choice: Allows users to select multiple predefined options. It is suitable for scenarios that require multiple tags or attributes, such as product features (waterproof, dustproof, shockproof) or property facilities (has parking space, has a garden).The option is also set in the "Default Value". Dropdown selection: Functionally similar to single selection, but presented in the form of a dropdown menu, suitable for situations with many options, such as provinces, cities, or product materials. Is mandatory: This setting is used to ensure the completeness of key information, and the system will perform a check when the content is submitted. Default value: It can be used to preset an initial value for a field, or to define all optional items (one per line) in selection, multi-selection, and drop-down types.
How does the content model adapt to different business needs?
Through the above custom options, the content model of Anqi CMS can flexibly adapt to various business scenarios:
E-commerce website:Can create a "Product ModelThus, each product can store all necessary information in an organized manner.
Real estate information platform:Can build a "real estate model" that includes "areaThis makes the listing information clear and easy for users to filter and browse.
Event publishing website:Can define an 'event model', including 'event date', 'event time', 'event location', 'ticket price' (number), 'organizer', 'contact information', and 'event description' (multi-line text) fields.All details of each event can be accurately recorded and displayed.
News portal or industry blogIn addition to the built-in 'Article Model', it can be further customized to add fields such as 'Article Source', 'Author Introduction', 'Reading Duration', or 'Whether it is a Recommended Headline' (single selection) to enrich the article metadata, enhance content quality, and improve user experience.
Service-oriented enterprise websiteCan create a "Service Item Model", add "Service Duration", "Price Range", "Service Process" (multi-line text), "Service Advantages" (multiple choices), and "Case Images" (grouped images, achieved through custom fields), etc.
In practical operations, when we select a specific category to publish content, the Security CMS will dynamically display the corresponding custom fields in the content editing interface based on the content model of the category. These custom fields not only facilitate the input of content in the background but also enable template tags (such asarchiveDetailandarchiveParamsIt is accurately called and presented on the website frontend, ensuring structured and personalized display of content.This powerful flexibility makes Safe CMS our powerful assistant for efficient website operation and dealing with changing content needs.
Frequently Asked Questions
问:Content model and document classification have what relationship? Answer: Each document category in the AnQi CMS must and can only belong to a specific content model.This means that when you create a new document category, you need to specify a content model (such as "article model" or "product model") for it, and once this association is established, it cannot be changed.This design ensures that all content under the category follows the same data structure, making it convenient for unified management and display.
问:How do I call a custom field from the content model on the front-end website?
答:Safe CMS provides powerful template tags, such asarchiveDetailandarchiveParamsUsed to call content model custom field data in the front-end template. Through{% archiveDetail with name="你的调用字段名" %}You can directly get the value of a single custom field,{% archiveParams params %}You can iterate and display all custom field names and values, allowing you to flexibly display this information on the page according to your business needs.
问:删除一个内容模型会产生什么影响? Answer: Deleting the content model is a behavior that requires careful operation.Once the content model is deleted, all documents associated with the model and all categories under the model will be deleted together.This means that all content data created based on this model will be permanently lost.Therefore, make sure to verify and confirm before performing the delete operation.