In website operation, the copyright information and filing number at the bottom (footer) of the website are not only an embodiment of the professionalism of the website, but also an important part of legal compliance.For websites built with AnQiCMS, setting and uniformly displaying this information is a simple and direct process.This article will guide you through how to easily complete these configurations in AnQiCMS, making your website look more professional and trustworthy.

Step 1: Set copyright information and filing number in the AnQiCMS backend

AnQiCMS provides a centralized management interface, allowing you to conveniently set up the basic information of the website.

First, please log in to your AnQiCMS backend.In the left navigation bar, find and click on "Backend Settings", and then select "Global Feature Settings".On this page, you will see several key settings, including the website filing number and copyright information that we need to pay attention to.

  • Website record number (SiteIcp)This field is used to fill in the record information of your website.Websites operating in mainland China must have a valid filing number, which is usually a string starting with 'Beijing ICP Filing' or 'Shanghai ICP Filing'.Please ensure that the record number you fill in here is accurate and complete.AnQiCMS will directly call the content you enter here, so no additional links or decorations are needed.
  • Copyright Information (SiteCopyright)Here is the place where you define the website copyright statement. Common copyright statement formats include “© Year Company Name. All Rights Reserved.”.You can fill in according to your own actual situation, for example “© 2023 Your company name. All rights reserved.””or more succinctly, 'Your Company Name'.

After completing the form, remember to click the 'Save' button at the bottom of the page to ensure your changes take effect.

Step 2: Display this information uniformly in the website template

After setting up the background information, the next step is to display this content on the website footer. In AnQiCMS, the website footer is usually located in the common template file (for examplebash.htmlorfooter.htmlThis ensures that all pages display the same information.

AnQiCMS's template system uses a syntax similar to the Django template engine, calling data set in the background through specific tags. To display the filing number and copyright information, we will usesystem.

Find the code responsible for the footer section in your website template file. This is usually a<footer>Inside the tag. Then, you can insert the corresponding AnQiCMS tag in the following way:

<footer>
    <p>
        {# 显示网站备案号,并为其添加指向工信部备案查询网站的链接 #}
        <a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">{% system with name="SiteIcp" %}</a>
        {# 显示版权信息,并动态获取当前年份 #}
        <span>&copy; {% now "2006" %} {% system with name="SiteCopyright" %}</span>
    </p>
    {# 其他页脚内容,例如友情链接、联系方式等 #}
    {# ... #}
</footer>

Let me explain this code in detail:

  • {% system with name="SiteIcp" %}This label will directly call the content of the "website filing number" you fill in the "global feature settings" in the background.
  • <a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">...</a>:For the convenience of users to verify the filing information, we usually link the filing number to the filing query website of the Ministry of Industry and Information Technology of the People's Republic of China.
    • rel="nofollow"This is an HTML attribute that tells search engines not to follow this link, usually used for external links to avoid passing page rank.
    • target="_blank"This attribute will open the link in a new tab, improving user experience and preventing users from leaving your website.
  • &copy; {% now "2006" %} {% system with name="SiteCopyright" %}This section is used to display the copyright notice.
    • &copy;This is the HTML entity for the copyright symbol.
    • {% now "2006" %}This is a very practical AnQiCMS tag that dynamically retrieves the current year. This way, you don't have to manually update the year in the copyright statement every year."2006"Is the Go language representation of the year formatting string.
    • {% system with name="SiteCopyright" %}This tag will call the copyright information content you filled in the background "Global Function Settings".

After you finish modifying and saving the template, refresh your website page, and you will see the updated copyright information and filing number at the footer.

By following these simple two steps, you have successfully set and unified the copyright information and filing number on the AnQiCMS website.This not only enhances the professional image of the website, but also ensures its compliance, making visitors trust your website more.

Frequently Asked Questions (FAQ)

  1. Ask: Why did I set up the filing number, but when I clicked it, it did not jump to the MIIT website, or it jumped and was a blank page?Answer: This is usually because the link address you added for the filing number in the template is incorrect, or it is missingtarget="_blank"the attribute. Please check your template code to ensurehrefThe attribute points to the correct record query URL (https://beian.miit.gov.cn/) and target="_blank"The property has been added. At the same time, the filing number itself is just a text string, AnQiCMS will not automatically turn it into a clickable link, you need to manually use it in the template.<a>tag wrapping.

  2. Ask: I hope the year in the copyright information can be automatically updated every year, can AnQiCMS achieve this?Answer: Absolutely. You can use it in the template.{% now "2006" %}This tag is used to dynamically display the current year. For example, write your copyright information template code<span>&copy; {% now "2006" %} 您的公司名称. 保留所有权利.</span>In this way, the year will be automatically updated every year without manual modification.

  3. Ask: I have updated the copyright information and filing number in the background, but the latest content is not displayed on the front page of the website immediately, what is the reason?Answer: This may be due to website caching. AnQiCMS enables caching to improve website access speed.When you have modified the background settings but the front-end has not been updated, you can try clearing the website cache.You can find the 'Update Cache' feature in the left navigation bar of the AnQiCMS admin panel, click to execute to make the changes take effect immediately.