How to obtain and display the filing number of the AnQiCMS website?

Calendar 👁️ 90

For websites operating in mainland China, the filing number (ICP number) is an indispensable element.It is not only a requirement of laws and regulations, but also an important symbol for improving the credibility of the website and gaining the trust of users.AnQiCMS understands this and therefore considered the convenient management and display of the filing number from the beginning of system design, allowing website operators to easily complete the configuration.

Next, we will together learn how to obtain (configure) and display the record number on the AnQiCMS website.

Enter the record information in the background settings.

To make the website frontend display the filing number, you first need to enter the relevant information in the AnQiCMS background management system. This process is very intuitive.

Log in to your AnQiCMS backend management interface, find it in the left menu『Backend Settings』and click to enter, select『Global Function Settings』. On this page, you will see a series of configurable website basic information.

Carefully browse, and you will find a name for『Record number』the input box.Here, you just need to enter your website filing number, for example, "Beijing ICP No. 12345678.Please note that the system will automatically handle the format, and you do not need to manually add the extra "-1" suffix.

After filling out, please be sure to click the bottom of the page『Save』button to make your record number settings take effect

Display in the template: Let the record number appear on the website page

After the registration of the filing number information in the background, the next step is to display it on the front page of the website.In most cases, the record number is placed in the footer area of the website, as this is the location where users are accustomed to find such information, and it also conforms to the design standards of most websites.

In AnQiCMS, the website's footer content is often defined in a global template file, such asbase.html, or an independent public snippet file, such aspartial/footer.html. You can access the backend byTemplate DesignEnter the template editing interface or directly find these files for editing through the server file management tool.

AnQiCMS provides a very convenient『System Tag』(systemtag) to get all the system information configured on the backend, including the record number. You can use it like this:

{%- system siteIcp with name="SiteIcp" %}
{%- if siteIcp %}
<p>
    <a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">{{ siteIcp }}</a>
     &copy;{% now "2006" %} {% system with name="SiteName" %}. All Rights Reserved.
</p>
{%- endif %}

Let's take a detailed look at this code:

  • {%- system siteIcp with name="SiteIcp" %}This line of code will retrieve the备案号 you filled in from the background “Global Feature Settings” and assign it to a variable namedsiteIcpVariable name.siteIcpIt is customized, you can choose any name you like at the beginning.{%-and at the end.}between them.-The symbol is to remove extra whitespace characters from the line where the tag is located, making the output HTML more compact.
  • {%- if siteIcp %}and{%- endif %}: This is a conditional judgment. It will checksiteIcpDoes the variable have a value (i.e., have you filled in the record number in the background).Only when the filing number exists, the internal code will be executed and displayed on the page, avoiding the display of an empty link or incomplete information when there is no filing number.
  • <a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">{{ siteIcp }}</a>This part will obtain the filing number{{ siteIcp }}Displayed as a hyperlink. The link target is the China Ministry of Industry and Information Technology Government Service Platform (https://beian.miit.gov.cn/This is the official website for querying record information. Addrel="nofollow"The attribute helps inform the search engine not to track this link, andtarget="_blank"which opens the link in a new window, enhancing the user experience.
  • &copy;{% now "2006" %} {% system with name="SiteName" %}. All Rights Reserved.This is a common copyright information format. It is a non-breaking space,&copy;It is the copyright symbol.{% now "2006" %}It will dynamically obtain the current year, which is very practical, you do not need to update manually every year.{% system with name="SiteName" %}It is used to retrieve the website name you have set in the background.

Add the above code snippet to yourbase.htmlorpartial/footer.htmlthe appropriate position in the file (usually)<body>at the end of the tag, for example<footer>Within the tag), save and refresh your website page, the record number information will elegantly appear at the bottom of your website.

Summary

By following these simple steps, you can easily configure and display the filing number on the website built with AnQiCMS.This ensures that your website complies with regulatory requirements and also conveys a professional image and sense of trust to visitorsAnQiCMS through its flexible template tags and backend configuration makes the website's compliance operation efficient and simple.


Frequently Asked Questions (FAQ)

Q1: Can my website be displayed without a filing number?A1: Of course you can. The filing number is a mandatory requirement for websites operating in mainland China.If your website is mainly aimed at overseas users, or has not yet been filed for filing, you can leave the filing number field in the background blank.template condition judgment (such as in the example above){%- if siteIcp %}) It will ensure that the corresponding content will not be displayed when there is no filing number.

Q2: Where is it better to link the filing number?A2: It is usually recommended to link the filing number to the Ministry of Industry and Information Technology of the People's Republic of China's government service platform (https://beian.miit.gov.cn/This is the official query platform for recordal information.

Related articles

How to display website name and Logo in AnQiCMS?

The website's name and logo are like the face of a brand, they are not only the first impression visitors have of you, but also an important manifestation of the website's professionalism and recognition.In AnQi CMS, setting and displaying your website name and logo is a straightforward and efficient process.Next, we will explore how to perfectly present these key elements on your website. ### First, set up the website name and Logo To make your website have a unique name and Logo, the first step is to configure it in the Anqi CMS backend management interface.1. **Enter Global Settings**

2025-11-08

How to control the automatic lazy loading of images in the article content of AnQi CMS

In website operation, page loading speed and user experience are crucial aspects.Especially for articles that contain a large number of images, the loading of images often becomes the 'culprit' that slows down the page speed.At this time, the image lazy loading (Lazy Loading) technology is particularly critical.AnQi CMS deeply understands this, providing a simple and efficient way to control the automatic lazy loading of images in article content, helping your website to improve performance and user experience.Why is lazy loading of images so important? Lazy loading of images is a strategy of deferred loading

2025-11-08

How to set up an independent template for the single page of AnQi CMS to achieve highly personalized display?

In website operation, we often encounter such needs: some single pages, such as 'About Us', 'Contact Information', or 'Product Download' pages, need to have unique layouts and functions to provide a more unique user experience or carry specific marketing goals.AnQi CMS understands the importance of personalized display and therefore provides a very flexible way for us to tailor exclusive templates for each single page, achieving highly personalized display effects.

2025-11-08

How to customize the content model field and flexibly call it to display its content in the template?

AnQiCMS is one of the core strengths in content management, with its flexible and customizable content model.This allows us to no longer be limited by a fixed content structure, enabling us to create personalized content types that meet the actual operational needs of the website.No matter if you are publishing technical articles, showcasing product details, or managing event information, custom content model fields can help you accurately construct the content structure you need and ultimately flexibly display it on the website front end.

2025-11-08

How to display custom copyright information in AnQiCMS templates?

In AnQiCMS website operation, the website footer usually carries important information, among which the copyright statement is not only a legal requirement, but also an embodiment of brand professionalism.Clear and dynamically updated copyright information that can enhance the professional image of the website and provide basic protection for the content.In AnQiCMS, managing and displaying custom copyright information on the website is a very intuitive and flexible operation.Next, we will learn how to set and display your custom copyright information in the AnQiCMS template.--- ### One

2025-11-08

How to display the website's contact phone number and address on the AnQiCMS front-end page?

In website operation, clearly and conveniently displaying the website's contact phone number and address is a key step in establishing user trust and promoting communication and interaction.For friends using AnQiCMS, the system provides a very flexible and intuitive way to manage and display this important contact information.This article will provide a detailed introduction on how to display the website's contact phone number and address on the AnQiCMS front-end page. ### Step 1: Enter contact information in the AnQiCMS backend Firstly, we need to ensure that the contact information of the website has been correctly entered in the backend.This is the foundation for displaying this information on the front end

2025-11-08

How to dynamically display the website's homepage TDK information in AnQiCMS?

The TDK of a website, which stands for Title (title), Description (description), and Keywords (keywords), is a basic element of Search Engine Optimization (SEO), which directly affects the display effect and user click intention of the website in the Search Engine Results Page (SERP).For the "face" of the website - the homepage, accurate and attractive TDK information is crucial.In AnQiCMS (AnQiCMS), managing and dynamically displaying the TDK information of the website homepage is a straightforward and efficient task

2025-11-08

How to build and display a multi-level navigation menu in AnQiCMS template?

The website navigation is the first window for users to interact with the website. A clear and intuitive navigation system can greatly enhance the user experience and help visitors quickly find the information they need.AnQiCMS provides a flexible and powerful navigation management function, whether it is a simple single-level menu or a complex two-level, three-level, or even more hierarchical multi-level navigation, it can be easily realized.Next, we will learn in detail how to build and display multi-level navigation menus in AnQiCMS.## Backend Settings: The Foundation of Navigation Construction Navigation construction in AnQiCMS begins with careful configuration in the backend

2025-11-08