Since AnQiCMS was launched, it has been favored by users for its simple, efficient, and flexible features.In the latest v2.1.1 version, we welcome a major feature update - the brand new "model" feature.This seemingly technical improvement actually has a profound impact on the way we publish and display website content on a daily basis, especially for core content types such as articles and products.
Model Function: Blueprint of Content Structure
In simple terms, 'model' is likened to the blueprint or skeleton of content.In the past, we might have only fixed types such as "articles" and "products", whose fields (such as title, content, images, etc.) were preset.Now, with the model feature, we can flexibly define any type of content structure according to the actual needs of the website.
This means that, in addition to traditional articles and products, you can now easily create a "event" model to publish event information, or build a "case" model to showcase customer projects, or even a "team member" model to introduce your team.The update log of AnQiCMS v2.1.1 clearly states: "Articles and products are generated according to the model", which is no longer just a simple custom field, but allows each content type to have an independent, customizable underlying structure.
Content Creation: A More Intelligent Backend Experience
The model function has brought significant changes to the content creation level, making the backend editing experience more intelligent and closely aligned with actual business processes.When you enter the back end to prepare 'Add Document', you will first come across this change.
The key is the selection of the "category". The design concept of AnQiCMS is that each category is clearly bound to a specific content model.When you select a category, the system will immediately identify the model associated with that category and dynamically display all the fields defined by that model on the page.For example, if a category belongs to the "product model" you define, you may see fields such as "price", "inventory", "product specifications", "color options", and so on;And if it belongs to the "article model", it may be "article source", "author", "publishing media", and so on.
This dynamic loading mechanism greatly improves the accuracy and efficiency of content input.You no longer need to worry about irrelevant fields, each content editing interface becomes highly customized, only displaying the input items required for the current content type.This reduces the complexity of operations and ensures the structurization and consistency of data.
Front-end Display: Flexible Template Tag Application
The impact of model function on the front-end display logic is mainly reflected in the use of template tags.In the AnQiCMS v2.1.1 version, the template tags have been refactored, removing the originalarticle/productTags, Unified for More General UsearchiveLabel. This change means that, regardless of whether your content is a traditional article, product, or an activity, case, etc. that you create, it is uniformly allowed in the template.archiveList(Get list) andarchiveDetailInvoke the (Get detail) tag.
ThesearchiveLabels can not only obtain standard fields of content (such as title, description, thumbnail, etc.), but more importantly, they can flexibly display additional fields customized in your model. For example, if you add a field namedmaterial(Material) custom field, then in the product detail page template, you can directly call through{{archive.material}}to call and display this material information without any complex processing.
For those who are uncertain about the custom fields available, or want to dynamically traverse and display all custom parameters.archiveParamsLabels provide great convenience. It can output a certain content item in a looping manner (archiveAll custom field names and their corresponding values, allowing template developers to build content display blocks more flexibly.
In addition, when retrieving the content list,archiveListlabel'smoduleIdParameters are particularly important. You can specifymoduleId='1'to retrieve the content of all article models, ormoduleId='2'to retrieve the content of all product models, even your custom models.moduleIdTherefore, it can accurately control the display of different types of content. This allows a template page to be based onmoduleIdDifferent, dynamically loading and presenting data from different content models, thereby achieving highly customized and reusable content display.
Summary: Empower endless possibilities of content.
In summary, the model features of AnQiCMS v2.1.1, from content organization to frontend presentation, give users greater autonomy and creativity.It raises the core value of CMS - content management - to a new height, making website construction and operation more efficient, accurate, and flexible.Now, your website is no longer just a simple information publishing platform, but a flexible content hub that can carry infinite creativity and business possibilities.Whether it is for e-commerce websites to create unique parameter fields for different product categories or for content operators to efficiently manage and update various information, the model functions provide strong support, greatly simplifying complex content management tasks and unlocking more diverse ways of content display.
Frequently Asked Questions (FAQ)
Q1: After upgrading to v2.1.1, will the previously published articles and product content be affected? Do I need to edit them again?A1: AnQiCMS v2