How to display the website filing number and copyright information in the footer?

Calendar 👁️ 79

In website operation, the website footer usually contains important information such as filing number and copyright statement.This information is not only a manifestation of the website's compliance, but also a window for displaying the website's professionalism.AnQiCMS provides a convenient way to manage and display this information.We will introduce in detail how to display the filing number and copyright information in the footer of the AnQiCMS website.

Step 1: Fill in the filing number and copyright information in the background

To display the filing number and copyright information on the website front end, you first need to enter it in the AnQiCMS backend. This process is very intuitive:

First, log in to your AnQiCMS admin interface. Find and click in the navigation menu on the left.“Background Settings”.“Global Settings”Options. On this page, you will see a series of configurable website basic information. Search carefully“Record number”and“Copyright information”Two fields. In“Record number”In the field, enter the Ministry of Industry and Information Technology filing number for your website, for example “Shanghai ICP xxxxxxxx No.”.Please note that it is usually not necessary to include the suffixes such as "-1" after the record number.“Copyright information”Field, enter the copyright statement you want to display in the footer, for example, "Your company name."}]All Rights Reserved.This field supports HTML content. If you need richer styles, you can directly enter HTML code here.“Save”Button, ensure that all changes have been successfully stored in the system.

Step two: Modify the website template file to implement information calling.

After entering the information into the background, the next step is to modify the website template files so that this information can be displayed in the website footer.The template file organization structure of AnQiCMS is clear, usually the footer part is encapsulated in a public file for convenience of the entire website call.

Firstly, you need to determine which template package the current website is using. All template files of AnQiCMS are stored in the root directory./templateIn the folder. Go into the folder of the template package you are currently using, find the template file responsible for the footer content, which is usually namedfooter.html/bash.htmlOr similar names. These files often contain general code for the website header and footer and are inherited or included by other pages.

After finding the corresponding footer template file, open it with a text editor. Add the following AnQiCMS template tags at the location where you want to display the filing number and copyright information:

<footer>
    <p>
        {%- system icp with name="SiteIcp" %} {# 获取备案号 #}
        {%- if icp %}
            <a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">{{ icp }}</a>
        {%- endif %}

        {%- system copyright with name="SiteCopyright" %} {# 获取版权信息 #}
        {%- if copyright %}
            <span>&nbsp;&nbsp;&copy;{% now "2006" %} {{ copyright|safe }}</span>
        {%- endif %}
    </p>
</footer>

The purpose of this code is:

  • {%- system icp with name="SiteIcp" %}: This line of code will retrieve the备案号码 you filled in from the background “global settings” and assign it to a variable namedicp.{%- ... %}under the line-Used to remove the blank line where the tag is located, making the generated HTML code more tidy.
  • {%- if icp %}: This is a conditional judgment, the link of the filing number will be displayed only when the filing number is not empty.
  • <a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">{{ icp }}</a>This will generate a link to the China Ministry of Industry and Information Technology (MIIT) government service platform, which is a common compliance practice.rel="nofollow"Tell the search engine not to track this link,target="_blank"which means to open the link in a new window.
  • {%- system copyright with name="SiteCopyright" %}: Similarly, this line of code will retrieve the 'Copyright Information' you have filled in the background and assign it tocopyrightVariable.
  • <span>&nbsp;&nbsp;&copy;{% now "2006" %} {{ copyright|safe }}</span>This will display the copyright symbol©And then{% now "2006" %}Dynamically retrieve the current year (make sure the year is always up to date) and then display the copyright statement you fill in|safeThe filter is necessary, it tells the template engine tocopyrightThe content within the variable should be rendered as safe HTML rather than escaping special characters, which is particularly important when the copyright information you enter in the background may contain HTML tags.

Step 3: Save and update the cache

After modifying the template file, please make sure to save the file. Since AnQiCMS has a caching mechanism, the website front-end may not display the update immediately.

Now, you need to enter the AnQiCMS backend again, click the button below the left menu bar,“Update Cache”clear the system cache, and refresh your website before

Related articles

How to display the website name and logo in the template?

The website's name and logo, like a person's name and face, are an indispensable symbol.They are not only the core of the brand image, but also the key to improving the professionalism of the website, enhancing user trust, and making it easy to remember.In AnQiCMS, elegantly present these important identification elements in the website template, simpler and more flexible than you imagine.Understanding the basic settings of AnQiCMS website In AnQiCMS, the basic information of the website such as the name and Logo is concentrated in the background "Global Function Settings".You can log in to the back end and navigate to

2025-11-09

How to dynamically set the page title (Title), keywords (Keywords) and description (Description)?

In website operation, the page title (Title), keywords (Keywords), and description (Description) are the foundation of Search Engine Optimization (SEO).They not only convey the core information of the page content to search engines, but also directly affect the click-through rate of users on the search results page.AnQiCMS (AnQiCMS) fully understands its importance and provides a flexible and powerful mechanism that allows users to dynamically and accurately set these SEO elements based on the content of different pages.This article will discuss in detail how to be efficient in AnQiCMS

2025-11-09

How to retrieve and display all articles associated with a specific tag?

AnQi CMS: Accurately locate and display the list of articles under specific tags In AnQi CMS, the Tag is a very practical feature that can help us classify and manage website content more finely, improve the efficiency of users discovering relevant content through keywords, and also greatly benefit the SEO performance of the website.By adding meaningful tags to articles, we can link together similar topics scattered across different categories, providing users with a more cohesive and in-depth reading experience.This article will delve into how to make use of the powerful template tag features of AnQi CMS

2025-11-09

How to display a list of all used tags (Tags) in the website?

In website operation, tags are an important tool for content organization and user discovery.A clear and complete list of tags can not only help users quickly find the content they are interested in, but also improve the website's SEO performance and guide search engines to better understand the structure of the website content.AnQi CMS provides powerful and flexible tag management and display functions, allowing you to easily display a list of all tags used on the website.### The display method of the site-wide tag list If you wish to establish a dedicated page on the website to showcase all used tags

2025-11-09

How to display breadcrumb navigation on a page to improve user experience?

In modern web design, breadcrumb navigation has become a standard element to enhance user experience and website usability.It acts as a guide for users to advance, clearly showing the user's current position in the website's hierarchy structure and providing a convenient way to return to the parent page.For websites built using AnQiCMS, integrating breadcrumb navigation can greatly facilitate visitors and also play a positive role in search engine optimization (SEO).Why is breadcrumbs navigation so important? Imagine

2025-11-09

How to display the contact information, phone number, address, and other contact methods set on the website?

In modern website operation, clearly displaying the company's contact information is a key link in building trust and facilitating communication with users.AnQiCMS (AnQiCMS) knows this well, providing you with an intuitive and flexible backend settings, allowing you to easily manage and display the contact information, phone number, address and other information of the website.This article will introduce in detail how to set and display these important contact information in Anqi CMS.### One, configure your contact information in the Anqi CMS backend All contact information displayed on the website front end first needs to be unified managed in the Anqi CMS backend

2025-11-09

How to display the WeChat QR code of the website or customize social media links?

In today's digital marketing era, the close integration of websites and social media is crucial for enhancing user interaction and brand influence.AnQiCMS as an efficient content management system fully considers the user's needs and provides a flexible and convenient way to display the WeChat QR code of the website and various custom social media links.In order to make it convenient for users to add WeChat consultation or guide them to visit your Facebook, Twitter, and other platforms, AnQiCMS can help you easily achieve this, making your website a bridge connecting users.### Step 1

2025-11-09

How to display the user comment list on the article detail page?

User comments are an indispensable part of the website content ecosystem. They not only effectively enhance content interactivity and user engagement, but also bring a richer UGC (User Generated Content) to the website, helping with SEO optimization and fostering a community atmosphere.AnQiCMS as a powerful content management system has fully considered this need, providing you with a flexible and efficient way to integrate the user comment list into your article detail page.

2025-11-09