How to correctly display the filing number and copyright information at the bottom of the AnQiCMS website and ensure automatic year update?

Calendar 👁️ 110

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.

Related articles

How does AnQiCMS handle and display the lazy loading (lazyload) feature of images in article content?

In website operation, the loading speed of image content is crucial for user experience and search engine optimization (SEO).Especially when an article contains a large number of images, if all the images are loaded all at once when the page loads, it may cause the page to respond slowly and even affect the user's patience.This problem solved, the image lazy loading (Lazyload) technology emerged.

2025-11-09

How to use the AnQiCMS recommendation attribute (flag) to filter and display specific content, such as "headline" or "slideshow"?

AnQiCMS provides a flexible recommendation attribute (flag) mechanism that allows website operators to easily filter and highlight specific content, whether it is the "top news" on the website homepage, the "slideshow" in the carousel, or other "recommended" content that needs special attention.This feature greatly enhances the efficiency of content operation and the richness of website content.### Understanding Recommended Attributes: Tag content with "Exclusive Tags" Imagine that you have published many excellent articles and product information, but some are currently the most important, most popular, or need to be displayed in specific locations

2025-11-09

Does AnQiCMS support setting custom templates for pages of different categories to achieve differentiated display?

In website operation, we often encounter such needs: different types of content or pages with different themes need to be presented in a unique way to better attract visitors, convey information, and even enhance the brand image.This involves the customization ability of the template.AnQiCMS (AnQiCMS) indeed provides strong and flexible support in this aspect, allowing users to set custom templates for pages of different categories to achieve differentiated content display.

2025-11-09

How to configure the pagination display style of the content list in AnQiCMS to improve user experience?

In AnQiCMS, optimizing the pagination display of the content list is crucial for improving the user browsing experience.A well-designed, easy-to-use pagination system not only helps visitors efficiently find information but also improves the website's SEO performance.AnQiCMS provides intuitive and powerful template tags, allowing us to easily achieve these goals.

2025-11-09

How to flexibly call and display the value of the 'Content Model Custom Field' in the AnQiCMS frontend page?

AnQi CMS excels in content management, especially its flexible content model and custom field features, which greatly facilitates the construction of personalized websites for us.The content of a website is often not just the title and text, but we may also need various additional information such as the author of the article, the source of publication, product specifications, event location, and floor area.These custom fields are like a 'personal filing cabinet' for content, allowing us to tailor the required attributes for each content type according to business needs.

2025-11-09

How to set up an independent display layout and elements for the single page of AnQiCMS, such as the 'About Us' page?

In AnQiCMS, setting up an independent display layout and elements for single pages like "About Us" can make the website content more distinctive and professional.AnQiCMS with its flexible template engine and modular design makes this process intuitive and efficient.Why do you need a custom layout for a single page?

2025-11-09

How does AnQiCMS ensure that the HTML content output through the `safe` filter is secure and correctly parsed and displayed on the front end?

In website operation, we often need to display user input or HTML content generated by a rich text editor.How to ensure that these dynamic contents are displayed correctly and avoid potential security risks is a challenge that every content management system must face.AnQiCMS as a Go language CMS that focuses on security has a mature mechanism in this aspect, especially the `safe` filter it provides, which plays a key role in ensuring the security and correct parsing of front-end content. ### Default security considerations: Why escape automatically?

2025-11-09

How to correctly display user comments and their review status in the AnQiCMS comment list?

In AnQiCMS, managing and displaying user comments, especially their review status, is a very practical feature in content operation.It not only helps us maintain community order, but also allows flexible control over the presentation of website content, ensuring the quality and compliance of published content.Next, let's take a detailed look at how to correctly display user comments and their review status in your website comment list. ### Core Function: Comment List Invocation To display user comments on the website, we need to rely on the powerful template tag system of AnQiCMS.

2025-11-09