In AnQi CMS, content is not just simple articles or products; it is a vibrant ecosystem that allows users to freely define and display various information according to actual business needs.This high degree of flexibility comes from its powerful content model support, as well as the infinite 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 several fixed content types to limit your choices, but provides a powerful mechanism that allows users to create various content structures according to their business logic like building blocks.

Imagine operating an e-commerce website, in addition to the basic "article" model, you also need a "product" model, which may include fields such as "product name", "SKU", "price", "inventory", "detailed description", and so on.If it is a service-oriented company, it may need a 'successful case' model, including 'customer name', 'industry field', 'solution', 'case details', and so on.Even, if you often hold online and offline activities, you can also create an 'Activity' model, defining exclusive fields such as 'Activity Theme', 'Event Time', 'Location', 'Registration Method', 'Maximum Number of Participants', and so on.

On the Anqi CMS backend, creating and managing these content models becomes very intuitive.Users can easily define the name of each model (such as "product", "case"), specify a unique table name and URL alias for it, ensuring clear data storage and a friendly access path.It is also possible to add a series of custom fields for each model.These fields support various data types, such as single-line text, numbers, multi-line text, single-choice, multiple-choice, and dropdown selections, and can be set to be required or provide default values.This means that, no matter how complex the content is, a suitable field type can be found to precisely describe it.

In addition to these customizable models, AnQi CMS also comes with some basic but flexible content carriers:

  • Articles and products:This is the two commonly used models provided by the system by default, but they themselves are also constructed through the above model mechanism, and users can extend them based on them 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 fixed and independent content, AnQi CMS provides a dedicated single-page management function.They have their own title, keywords, description, and content, and can even specify a template separately.
  • Category:Content categories are not just simple lists, they can also carry custom information such as category descriptions, SEO titles, keywords, and even specify exclusive templates or Banner images for a category, making them unique in the front-end display.
  • 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 the front end: The magic of template engines

拥有了结构化的内容骨架,接下来就是如何在网站前端精彩呈现。AnQi CMS understands this, it adopts the Django-like template engine syntax, providing developers and operators with powerful content display capabilities.This syntax is natural and smooth, easy to learn, and can present the content model defined behind and its various 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:

    • archiveListIt is used to get the content list of articles, products, or any custom model. It can be accessed through parameters such asmoduleIdspecify the model ID,categoryIdspecify the category ID,orderspecify the sorting method,type="page"Implement pagination) Filter out the content you need. This means 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.
    • archiveDetailUsed to obtain detailed information of a single content (article, product, etc.). Here, you can directly call the basic fields of the content such as 'title', 'content', 'description', 'thumbnail', and so on, and also throughnameParameters easily retrieve any field defined in a custom model (such as the price or stock of a product).
    • archiveParams:Used to display custom fields in the content model in a loop.When your product has multiple parameters (such as color, size, material), this label can help you list them neatly.
    • archiveFiltersIn the list page, if you want users to filter by custom content parameters (such as by color, price range, etc.), this tag can be used to dynamically generate filtering conditions and corresponding links.
  • Display of other content types:

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

2. Fine-grained template customization for content:The template design of AnQi CMS is not just about general layout. It supports specifying independent template files for specific pages, categories, even single articles or products.For example, a regular product detail page might useproduct/detail.htmlBut if you have a special customized 'high-end product' that needs a unique display layout, you can create one separatelyproduct/premium.htmland 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 for various devices:Faced with the need for access from multiple terminals, Anqi CMS provides various website mode support, including adaptive, code adaptation, and PC + mobile independent site mode. Through the/templateCreate in the directorymobileThe folder, and within this folder, place the mobile template in the same structure, the system can intelligently identify the visiting device and present the most suitable layout.Combine flexible template tags to easily achieve a set of content, elegantly displaying across multiple platforms.

4. Seamless Language Switching:For enterprises that need to serve a global audience, multilingual support is essential. AnQi CMS not only supports the publishing of multilingual content but also provideslanguagesTags, allowing users to easily build a language switcher on the front end. By combining templates in different language versions, customized content experiences can be provided 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 highly customized.