Security BLOG

AnQiCMS Help Document and User Guide

How to format a timestamp into a readable format

## Let Time Speak: How to Format Timestamps into Readable Dates in Anqi CMS When operating a website, the timeliness of content is often a point of great concern for users.Whether it is the publication time of the article, the update time of product information, or the specific moment of user comments, clear and intuitive dates and times can greatly improve the user experience, and even have a positive impact on search engine optimization (SEO).However, in the backend of the content management system, we sometimes see time presented as a long string of numbers, like `1609470335`.

📅 November 8, 2025 👁️ 64

How to safely output user-generated content in AnQiCMS templates to prevent XSS attacks from affecting the display of the page?

The website content operation is in progress, user-generated content (UGC) is undoubtedly a valuable resource for enhancing the vitality and interactivity of the website.Whether it is comments, messages, forum posts, or articles edited with a rich text editor, all of these greatly enrich the information ecology of the website.However, potential security risks come with UGC, the most common and severe of which is cross-site scripting (XSS) attacks.If not prevented, malicious script code may be executed in the user's browser, stealing user data, and tampering with the page

📅 November 8, 2025 👁️ 59

How to implement the template inheritance function of AnQiCMS, so that the content block display of master page and sub page can be overlaid and customized?

How template inheritance in AnQiCMS allows the parent page and child page to perform their respective functions?In website content management, maintaining consistent page style while being able to flexibly modify local content is a goal pursued by many operators.AnQiCMS uses a syntax similar to the Django template engine, providing us with an elegant solution, that is, the powerful template inheritance feature.With this feature, we can cleverly design master pages and subpages, making the website structure both unified and highly customizable.

📅 November 8, 2025 👁️ 64

How to use the `macro` macro function in AnQiCMS templates to define reusable content display segments to improve efficiency?

In AnQi CMS, efficiently managing website content and front-end display is the key to daily operations.When faced with some repetitive page elements, such as article list items, product cards, or buttons with specific styles, if you rewrite the code every time, it not only takes time and effort, but is also prone to errors, and future modifications and maintenance will become extremely complex.

📅 November 8, 2025 👁️ 67

How to use the `include` tag in AnQiCMS templates, efficiently reuse and display common page header, footer and other modules?

When building a website, we often encounter such a scenario: the website header (Header), footer (Footer), sidebar (Sidebar), and navigation menu modules, almost appear on every page.These modules are not only similar in content, but also their structure and style need to be maintained consistently.If you write the same code for each page, it is not only inefficient, but also a maintenance nightmare if you need to make any changes, as you would have to adjust all pages one by one.Luckyly, AnQiCMS (AnQiCMS) understands the importance of template reuse

📅 November 8, 2025 👁️ 61

How to set and accurately display the TDK (Title, Description, Keywords) on the homepage of AnQiCMS?

The homepage, just like the digital facade of your company or brand.It is not only the first impression of your visitors, but also the key to search engines evaluating the core value of your website.The TDK - Title, Description, and Keywords on the homepage play a crucial role in Search Engine Optimization (SEO).A well-set homepage TDK can effectively improve the ranking of the website in search results, attract more target users to click, and bring considerable traffic and conversion.

📅 November 8, 2025 👁️ 57

How does AnQiCMS handle the conversion of uploaded image webp format, large image compression, and thumbnail generation to optimize display performance?

In this era of pursuing speed and visual experience, the loading efficiency of website images is directly related to user retention and search engine rankings.We all hope that the images on the website can be presented in high definition and quickly displayed to the user.AnQiCMS provides us with a very practical solution in image processing, through functions such as WebP format conversion, intelligent large image compression, and diverse thumbnail generation, which help us easily optimize website images and make the website run more smoothly.### WebP Format Conversion: The Balance of Lightweight and High Definition WebP

📅 November 8, 2025 👁️ 70

How to overview the key operational data display of the AnQiCMS backend homepage (such as document quantity, visit trend, inclusion situation)?

The AnQi CMS backend homepage: A smart overview of website operations In the ever-changing internet environment, an efficient and intuitive website operation backend is undoubtedly the key to controlling the overall situation for operators.AnQiCMS (AnQiCMS) fully understands this, and the design philosophy of its backend homepage is to present the core operational data of the website in a clear and easy-to-understand way in front of you, so that you can have a clear understanding of the health status and operational performance of the website at the first time.

📅 November 8, 2025 👁️ 67

How to enable and display the captcha function correctly in the website's comment and message form?

When running a website, spam comments and malicious messages often cause headaches.They not only affect user experience, but may also consume server resources, and even reduce the professional image of the website. 幸运的是,AnQi CMS内置了验证码功能,可以帮助我们有效过滤这些不速之客,让网站环境更加清朗。Below, we will learn together how to enable and display the captcha function correctly in the website's comment and message form. ### Step 1: Enable captcha feature in the background First, we need to go to the management interface of the website background.Find 'Function Management' in the left navigation bar

📅 November 8, 2025 78

How to display友情链接 in front-end and add nofollow attribute according to needs?

Manage and display friend links in Anqi CMS, which not only helps to enrich the external connections of the website, but also is a delicate operation that needs to be fine-tuned during SEO optimization.It is particularly important to flexibly control the `nofollow` attribute according to requirements, which is crucial for maintaining the health of website links and the transmission of weight.Our Aiqi CMS provides intuitive and powerful features, allowing us to easily achieve these goals.--- ### Configure friend links in AnQi CMS backend Firstly, all the friend links displayed on the front end cannot be separated from the detailed configuration in the backend

📅 November 8, 2025 👁️ 64