Flexible content model: Build differentiated content structure

This flexibility means you are no longer limited to fixed article or product structures.Each time new content is published, the system will automatically display the corresponding custom fields based on the category you choose (and each category is bound to a content model), guiding you to fill in complete and accurate information.

Template engine and tag system: Fine-grained control of content display

With structured content, the next step is how to elegantly display them on the front end.AnQiCMS adopted a template engine syntax similar to Django, combined with its built-in powerful tag system, providing fine-grained control over content display.

In the template file, you will use double braces{{变量}}to output content data, use single braces and percentages{% 标签 %}To handle logical judgments, loop traversals, or call specific functions. This makes template development intuitive and easy to get started with.

For example, you will use it to obtain lists of different types of content.archiveListLabel. By specifyingmoduleIdParameters, you can easily get a list of articles, product lists, even your custom "services" or "case" lists. On the document detail page,archiveDetailLabels can help you display specific content titles, text, images, and more information.

Furthermore, for those fields you customize in the content model,archiveParamsLabels can extract them and display them in a loop.This means that the 'price' or 'industry applicable' of the product is no longer hardcoded in the content, but is structured as data that can be called and adjusted in the template at any time.

In addition to the core content display tags, AnQiCMS also provides rich auxiliary tags, such as:

  • categoryListandcategoryDetailUsed to display category hierarchy and category details.
  • pageListandpageDetailUsed to manage and display independent single-page content, such as "About Us
  • tagListandtagDataListAllow you to build related content recommendations or tag aggregation pages based on content tags.
  • ifandforTags are used to implement various complex conditional judgments and data loops, such as deciding whether to display images based on whether the content has a thumbnail, or to cyclically display a group of product images.
  • stampToDateLabels can conveniently format timestamps into readable date and time.

These tags collectively constitute the core of the flexible display of AnQiCMS content, making the content no longer just a pile of text, but able to present in various styles and layouts according to your design intentions.

Template customization and layout: Create a personalized visual experience

AnQiCMS's template system is not only powerful but also emphasizes modularity and customizability. It supportsextends/includeandmacroAuxiliary tags make template development as efficient as building blocks.

  • extendsTags allow you to define a basic layout (such as `