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?{%- 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.