Security BLOG

AnQiCMS Help Document and User Guide

Can the `add` filter be used directly for string concatenation to achieve the effect of 'Hello' + 'World'?

When creating website content and customizing templates on AnQi CMS, we often encounter situations where we need to process and combine text or data.For example, you may want to combine two separate words into a complete sentence;Or when displaying numerical information, concatenate it with a specific unit or description.At this point, various filters in the template are particularly important.The AnQi CMS is built-in with a powerful Django-style template engine, which provides rich tags and filters to help us display content more flexibly.These tools can not only traverse data, but also make conditional judgments

Calendar date 2025-11-07 👁️ 69

How to perform addition operation of two numbers (integer or floating point) in AnQiCMS template?

In AnQiCMS templates, dealing with numbers, especially performing simple addition operations, is a common requirement for content display and data processing.AnQiCMS with its efficient architecture based on the Go language and flexible Django-style template engine, provides us with intuitive and powerful tools to deal with these scenarios.Whether you need to accumulate statistical data or make some simple numerical adjustments when displaying on the front end, you can easily perform addition operations on numbers in the template.

Calendar date 2025-11-07 👁️ 71

The `wordcount` filter considers which delimiters in addition to spaces when distinguishing words?

In AnQi CMS template design and content management, we often use various filters to process and display data, among which the `wordcount` filter is a practical tool for counting the number of words in the text.For content operators, it is crucial to accurately understand its working mechanism, especially in distinguishing words when it considers boundaries in addition to spaces.According to AnQiCMS documentation, the `wordcount` filter's core recognition logic is **based on space separation** when calculating word count.

Calendar date 2025-11-07 👁️ 67

How to quickly calculate the number of words in the AnQiCMS article summary?

In the daily operation of website content, the number of characters and words in the article introduction (or summary) is often an indispensable part of content optimization.In order to optimize for search engines (SEO), ensure that the abstract is fully displayed in the search results, or to improve the user reading experience, the length of a well-suited introduction is crucial.For those who use AnQiCMS, understanding how to effectively manage and quickly calculate the length of these summaries can significantly improve work efficiency.###

Calendar date 2025-11-07 78

How compatible are the `cut` and `replace` filters when handling Chinese character strings?

In daily website content operations, we often need to process various text content, whether it is to remove unnecessary characters or replace specific words, efficient and accurate string operations are indispensable.AnQiCMS is a modern content management system developed based on the Go language, which provides rich filters (Filters) in the template engine to meet these needs.

Calendar date 2025-11-07 👁️ 69

What is the effect when the new word is empty in the `replace` filter while performing keyword replacement?

In AnQiCMS template language, the `replace` filter is a very practical tool that allows us to flexibly modify text content, such as replacing keywords, unifying terms, or performing simple text formatting.But a common issue when using this filter is: What if I intend to replace a word but do not provide a new replacement word?This is the core we are discussing today. ### Basic usage of `replace` filter First, let's review the basic operation of the `replace` filter

Calendar date 2025-11-07 👁️ 69

How to use the `replace` filter to replace the old brand name with the new brand name in AnQiCMS website content?

During the operation of the website, it is common to update the brand name.Whether it is due to brand upgrading, strategic adjustment, or in order to unify the public opinion, we need to ensure that all content on the website is synchronized with the latest brand information in a timely manner.For users of AnQiCMS (AnQi CMS), completing this task can be done either through powerful backend features or by utilizing flexible template filters.

Calendar date 2025-11-07 👁️ 74

The `cut` filter removes characters from a string, does it remove all matches or just the first match?

In AnQi CMS template creation, we often need to process strings, such as removing specific characters or spaces.At this point, the `cut` filter comes into play. This practical feature helps us finely adjust the content displayed on the page to ensure that the final effect meets expectations. The most common question about the `cut` filter is: When used to remove characters from a string, is it only removing the first match, or all matches?By going through the documentation and actual testing of Anqi CMS, we can clearly tell everyone

Calendar date 2025-11-07 👁️ 63

How to batch remove all specific interfering characters or HTML entities from AnQiCMS article content?

It is crucial to maintain the purity and readability of content in website content operation.Whether it is content imported from outside, text processed by collection tools, or redundant characters inadvertently introduced during daily editing, these interfering factors may affect user experience and search engine optimization effects.AnQiCMS provides an efficient and powerful built-in tool to help you batch clean up various interfering characters or HTML entities from the article content, ensuring that your website content always maintains a high-quality state.### The necessity of understanding content cleaning As the accumulation of website content continues

Calendar date 2025-11-07 👁️ 60

How to ensure that all unclosed HTML tags are properly closed after truncating `truncatechars_html`?

In website content operation, we often need to extract a part of the long text such as articles and product descriptions as a summary, used for list display or card preview.This can not only effectively save page space, but also attract users' attention and guide them to click to view the full content.However, when these long texts contain HTML tags, simple character truncation often leads to unclosed tags, thereby destroying the page layout and affecting the user experience.AnQiCMS (AnQiCMS) understands this pain point and has built the `truncatechars_html` filter into the template engine

Calendar date 2025-11-07 👁️ 75