What content models does AnQiCMS support, and how can they be flexibly displayed on the front end?

Calendar 👁️ 72

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.

Related articles

How to customize the display of the publication time and page views of articles using AnQiCMS template tags?

In the display of website content, the publication time and the number of views of the article are important elements in conveying information to readers and enhancing the value of the content.A clear publication time allows readers to understand the timeliness or timeliness of the content, while the number of views can reflect the popularity of the content.AnQiCMS with its flexible template mechanism allows us to easily customize the display of this key information to adapt to the design styles and user needs of different websites.

2025-11-09

How to get and display the record number and copyright information of the website in the AnQiCMS template?

In the operation of the website, the filing number (ICP) and copyright information are essential elements for building user trust and compliance with laws and regulations.It is crucial to clearly display this information for websites built using AnQiCMS, whether it is a corporate website or a personal blog.Luckily, AnQiCMS provides a very intuitive and flexible way to manage and display this content. Next, we will together learn how to obtain and display the website filing number and copyright information in the AnQiCMS template.

2025-11-09

How to implement multilingual content switching and correct display on the front end of AnQiCMS website?

When building a website for global users, providing multilingual content is a crucial step.AnQiCMS as a comprehensive content management system provides flexible and powerful support to achieve this goal.This article will discuss in detail how to implement multi-language content switching and correct display on the AnQiCMS website.## Global Website Creation: AnQiCMS Overview of Multilingual Capabilities AnQiCMS's multilingual support is designed to help website operators easily meet the needs of global content promotion.

2025-11-09

How to use the `archiveList` tag to display the latest article list of a specified category on the AnQiCMS homepage?

On AnQiCMS, the homepage is the first stop for visitors to understand your content, therefore, it is crucial to display the latest and most relevant articles efficiently.AnQiCMS provides a powerful and easy-to-use template tag system, where the `archiveList` tag is your reliable assistant for accurately displaying the latest articles of a specified category on the homepage.### `archiveList` tag introduction: The core of the home page dynamic content The `archiveList` tag is a core tool in the AnQiCMS template engine used to obtain the document list

2025-11-09

How to display the related Tag tag list of articles or products on the AnQiCMS detail page?

How can we make users find the content they are interested in more efficiently while also improving the visibility of the content in website operations, which is a problem we often think about.The detail page of an article or product, in addition to the core content, providing a list of related Tag tags is undoubtedly a good method to achieve this goal.AnQiCMS as a flexible and efficient content management system provides an intuitive and powerful Tag label feature, allowing you to easily display these related information on the detail page.### Learn about AnQiCMS Tag feature In AnQiCMS backend

2025-11-09

How to correctly parse and display HTML content in the rich text editor in the AnQiCMS template?

Managing website content in AnQiCMS, the rich text editor is undoubtedly our powerful assistant in creating rich and beautiful web pages.It allows us to easily add styles, images, links, even tables, making the content free from the boredom of plain text.However, ensuring that these meticulously edited rich text contents are presented correctly on the website's frontend template is a key skill that every AnQiCMS user needs to master.

2025-11-09

How to use AnQiCMS's pseudo-static function to optimize URL structure for better search engine display effect?

In website operation, a clear and meaningful URL address, like a business card of the website content, not only helps visitors quickly understand the theme of the page, but is also a key factor for search engines to identify, crawl, and rank the website content.A well-designed URL structure can significantly improve a website's performance in search engines and bring more natural traffic.AnQiCMS as an efficient content management system, understands the importance of URL structure for SEO, and therefore provides powerful and flexible pseudo-static functions to help us easily optimize the website's URL.### Static URL Rewriting

2025-11-09

How to implement lazy loading of images in document content in AnQiCMS to improve page loading speed?

In website operation, page loading speed is always one of the key factors affecting user experience and search engine optimization (SEO).Especially for websites with rich content, images are often the main factor that slows down page speed.Therefore, how to efficiently manage image resources has become an indispensable factor in improving website performance.Today, let's talk about how AnQiCMS cleverly implements lazy loading of images in document content, thus significantly improving page access speed.In AnQiCMS's design philosophy, website performance optimization is one of its core advantages.

2025-11-09