AnQiCMS Help Document and User Guide
During the template development process of Anqi CMS, we sometimes encounter situations where variables do not display as expected or the displayed content is incorrect.This may affect the normal functioning of the website, and may also cause deviations in content display, reducing the user experience.We need an efficient and intuitive tool to help us quickly locate the problem.The Anqi CMS provides a very practical built-in filter——`dump`, which can help us clearly view the structure, type, and current value of any variable in the template.
In today's changing network environment, many businesses and content operators are no longer satisfied with a single site.Scenarios where there are multiple brands, product lines, or the need for multilingual promotion are becoming increasingly common.AnQiCMS (AnQiCMS) is exactly under such needs, providing powerful multi-site management capabilities, allowing us to easily manage multiple content platforms with a single system.But having multi-site functionality is not enough. Often, we need to display specific content from one site on another site, to achieve resource sharing and content synergy.For example, the main site wants to display the latest products of a child site
When operating a website, we often encounter bots submitting a large number of spam messages or comments, which not only affects the quality of the website content but also increases the management burden and may have a negative impact on the reputation of the website.Luckily, AnQiCMS provides an in-built captcha mechanism that can effectively help us prevent such abusive behaviors.Next, let's see how to add a captcha for user comments or reviews in AnQiCMS.
During the process of website template development, we often encounter a challenge: how to fill the page to check the layout, style, and responsiveness before the real content is ready?If the template is empty or only has a few lines of simple text, it is difficult to evaluate the design effect directly.This is a very useful technique for generating random placeholder text. AnQiCMS (AnQiCMS) is an efficient and customizable content management system that fully considers the needs of template developers at this stage.
In website operation, we often need to dynamically display some numerical information, such as total product price, percentage of article reading, discounted price, and so on.The template system provided by AnQi CMS is powerful, it adopts syntax similar to the Django template engine, allowing us to easily implement these requirements when displaying content, perform basic arithmetic operations directly in the template, and display the results.### Master basic arithmetic operations in templates The most direct way to write arithmetic expressions in Anqi CMS templates is within double curly braces `{{ }}`
When managing and displaying content in Anqi CMS, we often encounter situations where we need to merge a group of related information into a coherent text.For example, a product may have many characteristics, and we hope to display the list of these characteristics uniformly with commas or slashes.Or perhaps, an article is associated with multiple keyword tags, and we want to summarize these tags into a single line of text.At this time, the powerful template filter of Anqi CMS can be put to good use, especially the `join` filter, which can help us easily achieve this goal.### Understand the `join` filter
When managing website content in Anqi CMS, we often encounter situations where we need to display dates and times.However, the time information stored in the background database is usually in the form of timestamps, which is very efficient for machine processing, but difficult for users to read directly.For example, you might see a string like `1609470335`, which represents a specific moment, but we want it to be displayed in a more friendly format like "2021 January 1 at 12:25:35".fortunately
In website content management, we often encounter such needs: when users input a block of plain text content in the background, it often contains some natural paragraphs and line breaks. We hope that these paragraphs and line breaks are rendered correctly on the website front-end as HTML paragraph tags (`<p>`) and line break tags (`<br/>`), rather than being compressed into a blob or ignored by the browser.AnQi CMS provides a very convenient and powerful template filter to solve this problem, allowing plain text content to be presented elegantly on the web.
In website content operation, we often encounter such situations: the article list page needs to display the summary of the content, the product detail page needs to show a brief introduction, or in some special modules, we need to extract a part of the long text or content containing HTML tags, and add "..." at the end to prompt the user that the content is not complete.This not only effectively saves page space and keeps the layout neat, but also improves the reading experience and attracts users to click to view the full content.To achieve such a function, if it were to be manually截取 each time, it would undoubtedly consume a lot of time and effort.Fortunately
In website operation, we often need to display information with rich formatting and media content, such as carefully edited article details, product introductions, or customized pages.This content often contains HTML tags, such as image tags `<img>`, link tags `<a>`, paragraph tags `<p>` and so on.However, if you directly output this content to a web page, you may find that it does not render as expected, but rather displays the HTML tags as plain text, greatly affecting the user experience and the beauty of the page.