In the Anqi CMS, content is not just simple articles or products; it is a vibrant ecosystem that allows users to freely define and display various types of information based on actual business needs.This high degree of flexibility is derived from its powerful content model support, as well as the endless possibilities brought by the front-end template engine.

Flexible and diverse content models: the skeleton of information

One of the core strengths of Anqi CMS is its highly flexible content model.It is not preset with a few fixed content types to limit your selection, but rather provides a powerful mechanism that allows users to create various content structures according to their business logic, just like building with building blocks.

Imagine if you were running an e-commerce website, in addition to the basic "article" model, you would also need a "product" model, which may include fields such as "product name", "SKU", "price", "stock", and "detailed description".如果是一家服务型企业,则可能需要“成功案例”模型,包含“客户名称”、“行业领域”、“解决方案”、“案例详情”等。Even so, if you often hold online and offline activities, you can create an 'event' model, defining fields such as 'event theme', 'time of holding', 'location', 'registration method', and 'maximum number of participants'.

In the AnQi CMS backend, creating and managing these content models is very intuitive.Users can easily define the name of each model (for example, "ProductIt is more important that a series of custom fields can be added to each model.These fields support multiple data types, such as single-line text, numbers, multi-line text, single choice, multiple choice, dropdown selection, etc., and can be set to be required or to provide a default value.This means that, regardless of how complex the content is, it is possible to find an appropriate field type to accurately describe it.

In addition to these customizable models, the Anqi CMS also comes with some fundamental but equally flexible content carriers:

  • Articles and products:This system provides two commonly used models by default, but they themselves are also constructed through the above model mechanism. Users can extend them based on these or create new similar models.
  • Single page:For pages such as 'About Us' and 'Contact Information' that do not belong to any specific model and have relatively fixed and independent content, Anqi CMS provides a dedicated single-page management function.They have their own titles, keywords, descriptions, and content, and can even specify templates individually.
  • Category:Content categories are not just simple lists; they can also carry custom information such as category descriptions, SEO titles, keywords, and even specify unique templates or Banner images for a category, making it distinctive when displayed on the frontend.
  • Tags:Tags as a cross-model content association method allow content operators to more flexibly connect articles, products, or cases under different models but related to the same theme, forming a richer knowledge network.

How to flexibly display in front-end: The Magic of Template Engine

Possessed a structured content skeleton, the next step is how to present it vividly on the website front-end.Auto CMS understands this, it adopts the Django-like template engine syntax, providing powerful content display capabilities for developers and operators.This syntax is natural and fluent, easy to learn, and can present the content model defined on the backend and its underlying data in various customized ways to the user.

1. Rich and powerful tag system:The template tags of Anqi CMS are the foundation for flexible front-end display.Whether it is to obtain system settings, contact information, TDK information, or to call navigation, breadcrumbs, or the core content list and details, there are corresponding tags.

  • Core content display:

    • archiveList:Used to get the content list of articles, products, or any custom model. It can be accessed through parameters such asmoduleIdspecifying the model ID,categoryIdspecifying the category ID,orderspecifying the sorting method,type="page"Implement pagination) filter out the content you need.This means that you can display the latest articles on the homepage, best-selling products on the product page, and recommended cases in the sidebar, all under control.
    • archiveDetailEnglish for getting detailed information of a single piece of content (article, product, etc.). Here, not only can you directly call the basic fields of the content such as 'title', 'content', 'description', 'thumbnail', but also throughnameParameters easily retrieve any field defined in a custom model (for example, the product's 'price', 'stock').
    • archiveParams:专门用于循环展示内容模型中的自定义字段。When your product has multiple parameters (such as color, size, material), this label helps you list them neatly.
    • archiveFiltersIn the list page, if you want users to filter products based on custom parameters of content (such as by color, price range, etc.), this label can be used to dynamically generate filtering conditions and corresponding links.
  • Other content types display:

    • pageListandpageDetailUsed to retrieve the list of a single page and the detailed content of a single page.
    • categoryListandcategoryDetail:Used to build category navigation, retrieve category details (including custom content, Banner images, etc.).
    • tagListandtagDataListEnglish: : Used to display the list of tags or to retrieve a list of related content based on a specific tag.

English: 2. Custom template down to the content level:The template design of Anqi CMS is not just about common layouts.It supports specifying independent template files for specific pages, categories, even single articles or products.product/detail.htmlBut if you have a special customized 'high-end product' that requires a unique display layout, you can create one separatelyproduct/premium.html,and specify this template when editing the product in the background. Similarly, a specific category (such as "Download Center") can also have its owndownload/list.htmlTemplate. This level of granularity in template control allows every corner of the website to have a unique visual and functional experience.

3. Responsive display adapted to various devices:Facing the needs of accessing from multiple terminals, the Safe CMS provides various website modes support, including responsive, code adaptation, and PC+mobile independent site modes. Through the use of/templatedirectory createmobileFolder, and place the mobile template in this folder with the same structure. The system can then intelligently identify the access device and present the most suitable layout.Combine flexible template tags, and it is easy to achieve a set of content with elegant display across multiple platforms.

4. Seamless Language Switching:For enterprises that need to cater to a global user base, multilingual support is indispensable. Anqi CMS not only supports the publication of multilingual content, but also provideslanguagesTags allow users to easily build a language switcher on the front end. By combining templates in different language versions, you can provide fully customized content experiences for users in different regions.

5. SEO-friendly URL structure:The display of front-end content also depends on the search engine's friendliness. Anqi CMS supports high-level customization