In website operation, especially for users in mainland China, correctly displaying the website's ICP filing number is an important part of compliance.The record 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 AnQi CMS provides users with a convenient way to configure and display this information.

Next, we will introduce step by step how to display the filing number in the footer of your Anqi CMS website and generate a link to the filing official website.

The first step: Configure the record information in the Anqi CMS background

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

  1. After logging into the backend, please find and click on the left-hand navigation menu“Background Settings”.
  2. Select in the sub-menu of "Backend Settings"“Global Settings”.
  3. On the global settings page, you will see a name called“Record number”The input box. Please accurately fill in your website ICP filing number, for example, 'Beijing ICP for XXXXXXXXXX number'. It should be noted that when filling in,No need toAdd a suffix like “-1” after the filing number, the system will automatically handle it to ensure that the link information can be generated correctly.
  4. After filling in, please make sure to click the link at the bottom of the page.“Save”Button to ensure your settings take effect.

Step 2: Modify the website template file to display the filing number.

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

  1. Your website template files are usually stored in/templateUnder the directory. In this directory, you will find the current template folder. In the template folder, common footer files might befooter.html, or public code filesbash.html/partial/footer.htmlWait. You need to find the HTML file containing the footer code based on the actual structure of your current template.

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

  3. To display the record number in 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 embedded one in it<a>.<a>label'shrefthe 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" %}dynamic display of the current year, and use{% system with name="SiteName" %}To display the name of your website, build 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 safe CMS website in compliance with regulations and beautifully.


Frequently Asked Questions (FAQ)

Q1: Why did I fill in the filing number on the back-end, but the front-end page does not display or the link is incorrect?

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

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

Q2: Can I customize the display text of the filing number or place the filing number in a position other than the footer?

A2: Of course you can.{% system with name="SiteIcp" %}The label 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 display 'Record number: XXXXXXXX', you can modify the code as follows:

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

Wherever you can insert template tags, you can use them flexibly.

Q3: What will be displayed at this location if I do not have a filing number?

A3: If you have not filled in any content in the 'record number' field in the background, then{% system with name="SiteIcp" %}The tag will not output anything on the front end. Therefore, the record number information will not be displayed in your website footer.If you do not have a temporary filing number at the moment, you can leave this field blank and fill it in after the filing is completed.