How to display the filing number in the footer and generate a link to the filing official website?

Calendar 👁️ 147

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.

Related articles

How to display a custom website logo and copyright information on the front end?

The website's logo and copyright information, like a business card, is an important manifestation of brand recognition and professionalism.They not only enhance the trust of users in the website, but also provide a direct display of the brand image and legal rights.In AnQiCMS, display these core brand elements, the process is simple and clear, allowing you to easily customize a unique image for your website.

2025-11-09

How to batch regenerate thumbnails to adapt to the new frontend display size requirements?

The website's front-end interface has been completely refreshed, you may find that the old thumbnail images do not fit well in the new layout, either the size is not right or the display effect is not good.Don't worry, AnQiCMS (AnQiCMS) provides you with a convenient and efficient solution to help you batch regenerate thumbnails and easily adapt to the new front-end display size requirements.Why do you need to regenerate thumbnails?The visual presentation of a website is crucial for user experience.

2025-11-09

How does AnQiCMS handle uploaded images to optimize front-end loading speed and display quality (such as Webp, automatic compression)?

In today's fast-paced online world, website loading speed and content display quality directly affect user experience and search engine rankings.Images are an important part of a website's content, and their handling is crucial for website performance.AnQiCMS (AnQiCMS) fully understands this, and therefore provides a series of powerful and practical functions in terms of image upload and management, aimed at helping us easily optimize the front-end loading speed and improve the display quality of images.### Core Strategy: Convert to WebP format, improve loading efficiency The choice of image format has a significant impact on website performance

2025-11-09

How to configure and display the global contact information of the website, such as phone number, address, WeChat QR code?

In website operation, clearly and accurately displaying contact information is a key link in building user trust and improving service efficiency.Whether it is a phone number, address, email, or the popular WeChat QR code, AnQiCMS provides a flexible and convenient way to configure and manage these global information to ensure they can be presented efficiently on the website. ### Backend Configuration: Centralize your global contact information To centralize this information, you need to log in to the AnQiCMS admin interface. After logging into the backend, please navigate to the left menu bar of “**Backend Settings**”

2025-11-09

How to include external static resource files (CSS, JS, images) in a template?

When using AnQiCMS to build a website, introducing styles (CSS), interactive scripts (JS), and images as static resources is the foundation for the website's aesthetics and functionality.Understand how to correctly introduce these files in the template, so that your website not only looks professional but also has rich functions and maintains efficient and stable operation.AnQi CMS with its concise and efficient architecture and flexible template engine makes it very intuitive to manage and introduce these resources.The AnQiCMS template system, especially in handling static resources, is very thoughtful

2025-11-09

How to use the `archiveList` tag to sort and display the article list by views or publication time?

How to efficiently display and organize content in website operation often directly relates to user experience and the effectiveness of content dissemination.AnQiCMS provides a series of powerful and flexible template tags that allow content managers to easily control the display of articles.Today, let's talk about how to use the `archiveList` tag to sort and display the article list by views or publishing time.### Understanding the `archiveList` tag The `archiveList` tag is AnQiCMS

2025-11-09

How to implement showing or hiding part of the content based on user group permissions (such as VIP exclusive content)?

In website operation, providing differentiated content services based on user identity is a common strategy to enhance user experience and achieve content monetization.AnQiCMS (AnQiCMS) with its flexible user group management and VIP system, can help us easily implement content display or hide based on user permissions.This article will delve into how to use this feature of Anqi CMS to create exclusive VIP content for your website or display different information based on user level.

2025-11-09

How can you determine if a variable exists in a template and dynamically display content based on the result?

Build an energetic website on AnQiCMS, content management is not just about publishing information, but also about how to intelligently present these information.Imagine if your website could flexibly adjust the display style based on the actual data, for example, showing an image if there is one, and displaying alternative text if there isn't;If there is relevant content, recommend it; if not, kindly prompt The key to realizing this intelligent dynamic display lies in how to determine whether a variable exists in the template

2025-11-09