Information at the bottom of the website, such as the filing number and copyright statement, may seem trivial, but it is an important reflection of the website's professionalism, legal compliance, and brand trust.For operators, correctly displaying this information and ensuring that the year can be automatically updated is not only convenient but also avoids the trouble of manual modification every year.In AnQiCMS, achieving this goal is very direct and flexible.

Set the filing number and copyright information in the background

In AnQiCMS, the website's filing number and copyright information can be configured in the unified "Global Settings".This allows us to centrally manage this important site metadata.

First, please log in to your AnQiCMS background. Find and click on the menu item on the left side of the navigation menu. Backend settingsSelect thenGlobal Settings.

After entering the global settings page, you will see some options related to the basic information of the website:

  • Record numberHere, you need to fill in your website filing number, for example, 'Beijing ICP No. XXXXXXXXXX'.AnQiCMS is usually smartly generated a link pointing to the Ministry of Industry and Information Technology government service platform (beian.miit.gov.cn) when called in a template, ensuring compliance.
  • Copyright informationThis field is used to fill in the copyright statement of your website. You can enter your company name or personal name here as needed, for example, 'Your Company Name. All Rights Reserved.'.It should be noted that we only fill in the fixed copyright statement part here, and the year part will be dynamically generated through template tags.

After filling in, please be sure to click the "Save" or "Submit" button at the bottom of the page to ensure that your changes take effect.

Display the filing number and copyright information at the bottom of the website and automatically update the year.

Information is configured in the background, next is to display them at the bottom of the website front page.The website footer is usually the place where this information is placed, and the footer code generally exists in the public files of the website template.

In AnQiCMS, template files are usually located in/templateIn the directory, each set of templates has its own independent directory. A common practice is to extract common parts such as headers (header) and footers (footer) and store them in such aspartial/footer.htmlsuch a code snippet file, or directly included in the main template filebase.html.

You need to log in to your AnQiCMS website file directory using tools such as FTP or Baota panel, then find the currently used template folder, and locate the area responsible for rendering the footer..htmlfile.

After finding the corresponding position, we can use the template tags provided by AnQiCMS to dynamically call the record number, copyright information, and current year set in the background.

  1. Display the record number: Insert the following tag where you want to display the record number:

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

    This code will retrieve the record number you entered from the background and automatically add a tag withnofollowExternal link to the Ministry of Industry and Information Technology filing query website, which is very beneficial for SEO and compliance.

  2. Display copyright information and automatically update the year.To automatically update the copyright year, AnQiCMS provides a{% now %}Label. This label can be displayed according to the Go language time formatting rules you specify. We only need to get the year part, we can use"2006"this format string.

    Assuming you fill in the "Copyright Information" field in the background with "Your Company Name. All Rights Reserved.", then you can combine it like this in the template:

    &copy; {% now "2006" %} {% system with name="SiteCopyright" %}
    

    Thus, each time a user visits the website, the system automatically retrieves the current year and displays it, avoiding the繁琐 of manual modification each year.

    A complete footer information area may look like this:

    <div class="footer-info">
        <p>
            &copy; {% now "2006" %} {% system with name="SiteCopyright" %}
            <span class="separator">|</span>
            <a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">{% system with name="SiteIcp" %}</a>
        </p>
    </div>
    

    You can add according to your design needs,<span>Tags, CSS classes, or other HTML elements to beautify the display of this information.

Tips and **Practice

  • Clear cache in time.After you have modified the template file or backend settings, in order to ensure that the front-end page displays the latest changes immediately, please be sure to go to the AnQiCMS backend, click on the bottom of the left-hand menu “Update Cache.
  • Compatibility CheckAfter the modification is completed, it is recommended to check your website on different browsers and devices (such as computers, mobile phones, tablets) to see if the filing number and copyright information are displayed correctly, and whether the style remains good.
  • Ensure information accuracy: Although the system can help you automatically process, please make sure to check the accuracy of the filing number and copyright statement text filled in on the back-end.

By following these steps, you can correctly and efficiently display the filing number and copyright information at the bottom of the AnQiCMS website, and enable the copyright year to be automatically updated, adding a sense of professionalism and peace of mind to your website.


Frequently Asked Questions (FAQ)

1. Why did I change the filing number or copyright information, but the front-end has not been updated all the time?

This is usually due to website caching. AnQiCMS caches page content to improve access speed.After you modify the settings in the background, you need to manually clear the cache to display the latest content on the front end.Please log in to the AnQiCMS backend, find and click on "Update Cache" at the bottom of the left menu, wait for a moment, and then refresh your website page.

2.{% now "2006" %}in the label"2006"What does it mean? Can I change it to something else?

"2006"Is a special 'reference time' used for date and time formatting in the Go language. In Go, date and time formatting is not done usingYYYY-MM-DDSuch placeholders, but through a fixed reference time (2006-01-02 15:04:05 -0700 MST) to define the output format. Therefore,"2006"means you want to display only the year part of the reference time. If you want to display other formats, such as2006-01-02It will be displayed as当前年份-当前月份-当前日期,15:04It will be displayed as当前小时:当前分钟. In scenarios where the year needs to be automatically updated, keep"2006"as the simplest and most effective way.

3. If my website does not have a filing number, can I leave the filing number field blank?

Of course you can. If the website you operate does not need to be registered in China (such as for overseas users or deployed on overseas servers), then the 'registration number' field on the back-end can be left blank.In the template, because we used{% system with name="SiteIcp" %}The tag is called, if the background field is empty, nothing will be displayed here on the front end, this will not cause any page error, only blank.You can also adjust the template as needed, if the field is empty, do not display the HTML structure related to the record number.