The way content is presented on modern websites is crucial for attracting users, conveying information, and achieving operational goals.A good content management system should not only make content publishing simple, but also make the presentation of content flexible and diverse.AnQiCMS is providing strong support in this aspect, through its flexible content model, powerful template engine, and rich tag system, allowing articles, products, and various types of content to be displayed in a diverse manner to visitors.
Flexible content model: Build differentiated content structure
One of AnQiCMS's core strengths lies in its 'flexible content model'.This is like customizing a data structure for each type of content on the website, ensuring that you can store and manage information that best meets your business needs.The system provides default article and product models, but your website may need to display more diverse content, such as service introductions, case studies, recruitment information, news updates, and even more complex real estate information or product parameter comparisons.
By customizing the content model, you can define exclusive fields for each content type.For example, a "product" model may need additional fields such as "product model", "price", "inventory", "application industry", and so on;And the "news" model may only need "source", "publish date", etc.AnQiCMS provides various field types including single-line text, numbers, multi-line text, single choice, multiple choice, and dropdown selection, all of which can be configured according to actual needs.In the background content model management, you just need a few simple steps to create and edit these fields, laying a solid data foundation for different types of content.
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 UstagListandtagDataListAllow 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 `