Security BLOG

AnQiCMS Help Document and User Guide

How can I customize the content display layout of the AnQi CMS website?

The layout of website content display is a key factor in attracting visitors, enhancing user experience, and optimizing search engine rankings.A clear, beautiful, and functional layout that can make your website stand out among competitors.AnQiCMS (AnQiCMS) is an efficient content management system that provides high flexibility, allowing you to customize the display of website content according to your actual needs.This article will deeply explore how to customize the content display layout of the Anqi CMS website, helping you turn your creativity into reality and create a website with a unique style.--- ###

📅 November 8, 2025 👁️ 77

How to use a for loop to traverse an array and handle an empty array in Anqi CMS template

During the template development process of AnQi CMS, dynamic data display is one of the core requirements.No matter whether it is an article list, product display, or navigation menu, we cannot do without traversing array or collection data.How to elegantly handle empty data in this process, ensuring the beauty of the page and user experience is equally important.The AnQi CMS template engine supports powerful features similar to Django template syntax, among which the `for` loop is a powerful tool for handling data lists.

📅 November 8, 2025 👁️ 63

How to use if/else condition judgment to control content display in Anqi CMS template?

In AnQi CMS template creation, flexibly controlling the display of content is the key to improving website user experience and management efficiency.Whether it is to display specific information based on different conditions, or to implement more complex personalized layouts, conditional judgment is an indispensable tool.Today, we will delve into how to use the powerful `if/else` conditional judgment in Anqi CMS templates to accurately control the presentation of content. The template engine of AnQi CMS adopts syntax similar to Django template syntax, which allows web developers familiar with web development to quickly get started. Among them

📅 November 8, 2025 👁️ 79

How to perform initial arithmetic operations on user input data in AnQi CMS template?

In AnQiCMS template design, performing preliminary arithmetic operations on user input data is a key link in achieving dynamic content display and interactive logic.AnQiCMS powerful template engine, draws on the characteristics of Go language and Django templates, providing developers with flexible and easy-to-understand arithmetic calculation capabilities, allowing you to handle various numerical logic in front-end templates without writing complex backend code.

📅 November 8, 2025 👁️ 61

How to get the friend link in Anqi CMS template and set the nofollow attribute?

In website operation, friendship links are an important means to enhance website authority and obtain external traffic.However, not all friendship links should pass on weight. It is particularly important to use the `rel="nofollow"` attribute reasonably to better manage the SEO performance of the website.The `nofollow` attribute tells search engines not to pass ranking weight from the current page to the target page, which is very useful when linking to non-core content, advertising pages, or third-party websites that cannot be fully trusted, and can effectively avoid SEO risks caused by low-quality links

📅 November 8, 2025 👁️ 68

How to get the website name in Anqi CMS template and correctly concatenate it in the SEO title?

In website operation, a well-constructed SEO title is crucial for attracting user clicks and improving search engine rankings.It must not only accurately summarize the page content but also ingeniously integrate the brand information.For AnQiCMS users, how to dynamically obtain the website name in the template and correctly concatenate it into the SEO title is a practical and efficient skill.AnQiCMS as a content management system that focuses on SEO optimization, provides very flexible tags at the template level, allowing you to easily achieve this goal.

📅 November 8, 2025 👁️ 65

How to get the category description with a specified ID in Anqi CMS template and truncate it?

In the Anqi CMS template, effectively managing and displaying category descriptions is a common requirement.Especially when displayed on list pages or block displays, we often need to show a concise introduction of the category rather than a full-length description.This article will provide a detailed introduction on how to obtain the specified ID category description in Anqi CMS template and perform appropriate truncation processing to ensure that the content is both concise and beautiful.Get category description by specified ID In AnQi CMS template, getting category details mainly depends on the `categoryDetail` tag

📅 November 8, 2025 👁️ 60

How to remove leading or trailing non-visible characters from the string data obtained from the content acquisition module in the template?

When using AnQi CMS for website content operations, the content collection module is undoubtedly an important way to obtain a large amount of information and quickly enrich the website content.However, text data collected or imported from external sources often contains unnecessary leading or trailing spaces, newline characters, or even other invisible characters.These seemingly minor 'dirty data' can affect the aesthetics of page layout, content alignment, and even cause subtle negative impacts on search engine optimization (SEO).

📅 November 8, 2025 👁️ 59

How to automatically remove leading and trailing newline and tab characters from the `Description` field when the template is output?

In website content operation, the importance of the `Description` field on the page is self-evident.It is not only one of the key pieces of information that search engines use to crawl and understand page content, but also a window for users to initially understand the theme of the page in search results.A clear, concise, and non-redundant description that can effectively improve click-through rate and have a direct impact on SEO performance.However, in actual operation, we sometimes find that even though the page description is carefully written in the background, when it is output in the front-end template

📅 November 8, 2025 78

How to delete multiple specified character sets from both ends of a string in AnQiCMS template, for example, `()` or `[]` and other brackets?

In the AnQiCMS template, flexible string processing is an important aspect for improving content display effects and data accuracy.We often encounter the need to remove a specific character set from both ends of a string, for example, when fetching titles or tags from a database, they may be enclosed in `()` or `[]` or even `<>` brackets, and these brackets may not be needed when displayed on the front end.luckyly, AnQiCMS is developed based on Go language, its template engine adopts the template syntax of Django, and provides powerful filter functions

📅 November 8, 2025 👁️ 70