AnQiCMS is a system designed specifically for efficient content management, one of its core advantages being its flexible content model, which allows the display of website content to be highly customized according to business needs and user experience, rather than being limited by fixed frameworks.

To fully utilize the content model of AnQiCMS for flexible display, we can understand and operate from the following aspects.

Firstly,Understand the essence and function of the content model.

Secondly,The template system is the brush for displaying the content modelAnQiCMS uses a syntax similar to Django's template engine, allowing us to present structured data of content models on the frontend page. Template files are usually named with.htmlwith suffix, and organized in/templatedirectory. The system has an intelligent template matching mechanism, for example, for the content of "Product Model", the system will first look forproduct/detail.htmlas the detail page template, search forproduct/list.htmlAs a list page template.

But the real flexibility is reflected inCustomized template designUp.AnQiCMS supports specifying exclusive templates for specific content, categories, or even individual pages.product/10.htmlThe template file. Similarly, if all products under a certain category (ID 10) require a special list layout, you can createproduct/list-10.htmlWhen editing articles, categories, or single pages in the background, you can also manually specify a custom template file path in the "Document Template" or "Category Template" fields (for example,download.htmlLet the content be presented with a completely different visual representation.This multi-level template overlay mechanism allows developers and operations personnel to tailor display solutions for every corner of the website.mobile/Store mobile template directories to achieve differentiated display of PC and mobile content, or manage them uniformly through adaptive and code adaptation modes.

Moreover,A rich set of template tags is the conductor of content display. AnQiCMS provides a variety of built-in tags for extracting and displaying data from the content model.

  • archiveListandarchiveDetailLabels are the core used for the list and detail display of documents (including articles, products, and other custom model content). Through these labels, we can flexibly categorize according tomoduleId(Content Model ID),categoryId(Category ID),flag[Recommended attribute],order(Sort method) andlimit[Display quantity] and other parameters, to precisely control the content call. For example, on a product list page, we can usearchiveList archives with moduleId="2" categoryId="1" order="views desc" type="page" limit="10"To display the product with the highest views under a certain category, and combinepaginationtags for pagination.
  • For the content model definedCustom fieldswe can directly get its value througharchiveDetail with name="自定义字段名"or usearchiveParamsTags to iterate over all custom fields, and display them dynamically in key-value pairs. This is particularly useful for building product parameter lists, event details, and other scenarios.
  • categoryListandcategoryDetailTags focus on the display of classification information, whether it is building multi-level navigation or displaying the description, images, and other information of the category itself on the category page, they are indispensable.
  • pageListandpageDetailThen used for managing and displaying independent pages such as "About Us", "Contact Information", etc.
  • tagList/tagDetail/tagDataListIt allows us to aggregate and display related content based on the tagging system, providing users with more dimensions of content discovery paths.
  • navListTags are used to build the navigation menu of the website. It can flexibly display first and second-level navigation links based on the navigation categories set in the background, and even embed category or product lists in the navigation menu.
  • In addition,ifandforControl tags such as,safe(Used for safely outputting HTML content),render(Used for rendering Markdown content to HTML) andtruncatecharsetc. filters, providing strong support for the dynamic logic and content decoration of the template.

Through the above mechanism, AnQiCMS makes the flexible display of content within reach.Whether it is to build a complex product showcase website, a multi-dimensional content information platform, or an enterprise official website that requires highly personalized services, AnQiCMS can provide strong and flexible technical support.It's not just a content publishing tool, but also a powerful tool to help operators maximize the value of content.


Common Questions (FAQ)

  1. How to display content from different content models in different areas of a page?AnQiCMS supports calling different in the same template file,archiveListLabel, and specify differentmoduleIdandcategoryId