In website operation, especially for mainland Chinese users, correctly displaying the ICP record number of the website is an important part of compliance.The registration number is usually located at the footer of the website and will link to the Ministry of Industry and Information Technology's government service platform (beian.miit.gov.cn), convenient for users to query and verify.The CMS provides a convenient way for users to configure and display this information.

Next, we will guide you step by step on how to display the record number in the footer of your security CMS website and generate a link to the record official website.

第一步:In the Anqi CMS backend, configure the record information

Firstly, you need to log in to your Anqi CMS backend management interface.

  1. Enter the backend and click on the navigation menu on the left“Backend Settings”.
  2. Select in the sub-menu of "Backend Settings"“Global Settings”.
  3. In the global settings page, you will see an option named“Record Number”The input box. Please fill in your website ICP filing number accurately here, for example, 'Beijing ICP for XXXXXXXX number'. It should be noted that when filling inNo need toAdd the suffix “-1” after the record number, the system will automatically handle it to ensure that the link information can be generated correctly.
  4. After filling in, please be sure to click the link at the bottom of the page.“Save”Button, to ensure that your settings take effect.

Step 2: Modify the website template file to display the record number

The record number is usually displayed in the footer of the website, and this content is usually managed uniformly through the public template file in Anqi CMS.

  1. Your website template files are usually stored in/templateIn the directory. In this directory, you will find the template folder currently in use. Common footer files may be in the template folder.footer.html, or public code files.bash.html/partial/footer.htmlEnglish. You need to find the HTML file containing the footer code according to the actual structure of your current template and edit it.

  2. After finding the corresponding template file, you can use the template tags provided by Anqi CMS to retrieve and display the record number you set in the background. Anqi CMS via{% system %}Tag to call system configuration information, where the备案号corresponds to the name isSiteIcp.

  3. To display the record number at the footer and link it to the record official website, you can add or modify a code snippet similar to the following in the template file:

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

    This code creates a paragraph first<p>,Then it embedded one<a>Label.<a>TagshrefThe attribute points to the official query link of the Ministry of Industry and Information Technology's government service platformrel="nofollow"andtarget="_blank"is a good practice for SEO and user experience.{% system with name="SiteIcp" %}The label will dynamically display the registration number you fill in the background. In addition, we also use{% now "2006" %}the current year for display, and{% system with name="SiteName" %}Display your website name, and built a complete copyright information.

  4. Place this code in the appropriate position in the footer template file you find, and then save the file.

  5. After saving the template file, refresh your website's front-end page, and you will see the updated record number information in the footer, and it has been correctly linked to the record query official website.

By following these two simple steps, you can display the ICP record number on your CMS website in compliance and a beautiful manner.


Common Questions (FAQ)

Q1: Why is the备案号 not displayed on the front page or the link is incorrect even though I filled it in on the backend?

A1: If the filing number is not displayed on the front desk or there is a problem with the link, please check the following points first:

  1. Has the backend setting been saved?Ensure that you have clicked the 'Save' button after entering the record number in the 'Global Settings'.
  2. Is the template file correctly modified?:Confirm that you have found the correct footer template file and have added the code from the example correctly. Pay special attention to the spelling of the tags.{% system with name="SiteIcp" %}It is case-sensitive.
  3. Cache issuesSometimes website cache can cause modifications not to take effect in time.Try clearing your browser cache, or if your security CMS has enabled system caching, you can clear it through the "Update Cache" feature in the background.

Q2: Can I customize the display text of the record number, or place the record number in a location other than the footer?

A2: Of course you can.{% system with name="SiteIcp" %}Labels can be used at any template location where you wish to display the record number. If you want to customize the displayed text, for example, to only show “Record number: XXXXXXXX”, you can modify the code to:

备案号:<a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">{% system with name="SiteIcp" %}</a>

Any place where you can insert template tags, you can use it flexibly.

Q3: If I don't have a registration number, what will be displayed at this location?

A3: If you do not fill in any content in the "record number" field in the background,{% system with name="SiteIcp" %}The label will not output any content on the front end.Therefore, the record number information will not be displayed in the footer of your website.If you do not have a registration number temporarily, you can leave this field blank and fill it in after the registration is completed.