How to display the copyright information, filing number, and other global settings on the front-end page?

Calendar 👁️ 85

The website footer usually carries important content such as copyright information, filing number, and more, which not only relates to the professional image of the website but is also the cornerstone of legal requirements and user trust.In AnQiCMS, these global settings can be configured and called very conveniently, making your website information clear at a glance.

We will learn in detail how to configure and display these key information in AnQiCMS.

Step 1: Configure global information in the background.

First, you need to log in to your AnQiCMS backend, find the left navigation bar's 【Background Settings】, and then click 【Global Function Settings】.Here, you will see a series of customizable global site information.

These settings items are directly related to copyright information and filing number:

  • Website Name: It is usually used to display the brand name or part of the website title.
  • Website LOGO: You can upload your website icon, which will be called to display in the template.
  • Record numberIf your website has passed the Ministry of Industry and Information Technology filing, please fill in your filing number here. Please note that you only need to fill in the filing number itself, not including suffixes like “-1”.
  • Copyright informationThis is a text area where you can fill in the copyright statement for the website, for example, “©2023 Your Company Name. All Rights Reserved.”, or any other copyright statement you wish to display.

Moreover, if you have any other information that needs to be displayed uniformly across the entire site, such as a specific slogan, contact information for a special project, or a link to a specific page, you can use the [Custom Settings Parameter] feature.Here, you can add new parameter items, set a 【parameter name】(it is recommended to use letters, which will be automatically converted to camel case by the system), enter the corresponding 【parameter value】, and a 【remark】for future management.The calling method of these custom parameters is similar to built-in parameters, greatly enhancing the flexibility of the system.

After completing the information entry, please make sure to click Save to ensure that your configuration takes effect.

Step two: Call the global settings content on the front page.

After configuring the background information, the next step is to display them on the front page of the website. Typically, these global information is placed in the footer of the website, or a universal header file, even likebash.htmlsuch a public code snippet.

The AnQiCMS template system provides powerfulsystemLabel to get this globally set content in the background. You can call them in your template files using the following method:

  1. Display website nameThe website name usually appears in the title of the page (<title>tags) or in the brand logo at the footer.

    <title>{% system with name="SiteName" %}</title>
    <!-- 或者在页面内容中 -->
    <span>欢迎访问 {% system with name="SiteName" %}</span>
    
  2. Display the website logoThe invocation of the website logo is usually combined with<img>Tags, and it is recommended to set them at the same time for SEO optimization.altThe attribute is the name of the website.

    <img src="{% system with name="SiteLogo" %}" alt="{% system with name="SiteName" %}" />
    
  3. Display the record numberThe record number usually needs to be linked to the Ministry of Industry and Information Technology filing management system website.

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

    here,target="_blank"Means to open the link in a new window.rel="nofollow"Then tell the search engine not to track this link, which is a common SEO practice.

  4. Displays copyright informationThe copyright information you fill in the background can be called in the following way.

    <div>{% system with name="SiteCopyright" %}</div>
    

    Special reminder: If your copyright information contains HTML tags (such as<a>links or<b>bold text, etc.), in order to ensure that these tags are parsed correctly rather than displayed as plain text, you need to use|safea filter. For example:

    {% system siteCopyright with name="SiteCopyright" %}
    {{ siteCopyright|safe }}
    

    In the copyright information, we often need to display the current year. AnQiCMS provides anowtag to get the current time, and you can combine it to display the year:

    <div>版权所有 &copy; {% now "2006" %} {% system with name="SiteName" %}. All Rights Reserved.</div>
    

    Here"2006"Is a special string used in Go language for formatting years.

  5. Display custom parametersThe calling method is similar to built-in parameters for the parameters you customize in the background, just need tonameSet the attribute to your custom parameter name (note the camel case naming rule). For example, if you have a parameter named "HelpUrl":

    {% system helpUrl with name="HelpUrl" %}
    <p>需要帮助?请访问我们的 <a href="{{helpUrl}}">帮助中心</a>。</p>
    

Tips and注意事项

  • Select the template fileFooters are usually placed in a template namedfooter.html. If your template uses a publicbash.htmlfile to include headers and footers, then the calling code will also be placed there.
  • Clear cacheAfter modifying the template file or backend settings, if the front-end page does not update immediately, please try clicking the Update Cache button in the upper right corner of the backend navigation bar, clear the system cache, and then refresh the page.
  • Test compatibilityAfter completing the changes, it is recommended that you test on different browsers and devices to ensure that all information is displayed correctly and that the layout has not been affected.

By calling the above simple configuration and template code, you can easily display professional and compliant copyright information, filing number, and other global settings on the website built with AnQiCMS.The flexibility of AnQiCMS makes these operations easily accessible.


Frequently Asked Questions (FAQ)

  1. Why did I add the label in the copyright information I set in the background,<b>but the label showed up directly on the front page,<b>without bolding? AnswerThis is because AnQiCMS template engine, for safety, defaults to escaping output HTML tags to prevent XSS attacks. If your copyright information contains HTML tags and you want them to be effective, you need to use them when calling the content.|safeFilter. For example, to{% system with name="SiteCopyright" %}is modified to{% system siteCopyright with name="SiteCopyright" %}{{siteCopyright|safe}}Such that the template engine will treat it as safe content and normally parse HTML tags.

  2. Ask: I have modified the "website name" or "record number" in the background, but the front page seems to have no change after refreshing, what is the matter? AnswerThis is likely due to system caching. AnQiCMS caches some data to improve website access speed.When you modify the background settings but the front-end is not updated, you can try clicking the [Update Cache] button on the right side of the background navigation bar to clear the system cache.After cleaning up, refresh the front-end page again, and you should be able to see the latest content.

  3. Ask: Besides copyright and record number, how should I operate if I want to display a custom social media link at the bottom of the website? AnswerYou can use the [Global Function Settings] under the [Custom Setting Parameters] feature. For example, you can add one namedFacebookLinkCustom parameter, set its [parameter value] to your Facebook homepage URL. Then in your template file (such asfooter.html), through{% system facebookLink with name="FacebookLink" %}{{facebookLink}}This way to call and generate the corresponding link, for example:<a href="{% system facebookLink with name="FacebookLink" %}{{facebookLink}}" target="_blank">Facebook</a>.

Related articles

Can AnQiCMS set independent display templates for different articles? How to operate?

## AnQiCMS: Create a dedicated display template for every article of yours In our daily website operations, the diversity of content presentation is the key to improving user experience, enhancing brand image, and optimizing SEO effects.Different types of articles often require different layouts and features, such as a deep technical analysis article that may require a more focused reading interface, while a product introduction page may require richer image displays and purchase buttons.So, can AnQiCMS (AnQiCMS) meet the need for setting independent display templates for different articles?I can clearly tell you

2025-11-09

How to precisely control the display level and sorting order of the navigation menu in AnQiCMS template?

In website operation, a clear and intuitive navigation menu is like a guidepost for visitors to explore the website.A well-designed navigation not only improves user experience but also helps search engines better understand the website structure.AnQiCMS provides a flexible mechanism to help users accurately configure the hierarchy and sorting of navigation menus in the background and implement these controls in the front-end templates. ### Build Navigation Skeleton: Backend Settings Are Key Navigation menu control in AnQiCMS starts from its backend management interface.This is like the blueprint design center of the navigation menu

2025-11-09

How to set up multilingual support in AnQiCMS and provide language switching options on the front-end page?

Today, with the deepening of globalization, multilingual support for websites is no longer an option, but a key factor for enterprises to expand into international markets and enhance user experience.AnQiCMS has fully considered this need, providing users with a flexible and powerful multilingual solution to ensure that your content can reach users all over the world and provide a friendly browsing experience in different cultural contexts.The core strategy of AnQiCMS in implementing multi-language functionality is to treat each language as an independent "site" for management, and to combine it with the translation mechanism at the template level

2025-11-09

How can you implement a multi-dimensional filtering function on the article list or product list page (such as by price, attributes)?

I am glad to discuss with you how AnQi CMS can help us achieve multi-dimensional content filtering.In this era of information explosion, users are increasingly pursuing efficiency and personalization in obtaining content.A website that allows users to quickly locate content according to their own needs will undoubtedly greatly improve the user experience and conversion rate.AnQi CMS provides very powerful and flexible functions in this aspect, especially through custom content models and specific template tags, we can easily build multi-dimensional filtering functions on article list or product list pages, just like the "price filtering" commonly seen on e-commerce websites

2025-11-09

How to avoid malicious collection of content in AnQiCMS and add watermarks to images to protect copyright?

In today's world where digital content is increasingly rich and spreads rapidly, protecting the copyright of original content is particularly important.Malicious collection and unauthorized use of images not only harms the creators' labor results, but may also have a negative impact on the website's SEO and brand image.AnQiCMS (AnQiCMS) understands these challenges and therefore incorporates multiple features to help users effectively avoid malicious content scraping and add watermarks to images to protect copyright.In the era of information explosion on the Internet, original content is a valuable asset of the website. However

2025-11-09

How to format the article publish time in the template to display it in the specific format of 'Year-Month-Day'?

In website operations, a clear and unified time display format is crucial for improving user experience and content professionalism.Especially the publication time of the article, a standardized "year-month-date" format can make it clear to visitors.In AnQiCMS (AnQi CMS), achieving this is actually very simple and flexible.### Understanding AnQiCMS time handling method When using AnQiCMS, you will find that articles (`archive`) and products and other content all have two key time fields

2025-11-09

How to implement the 'Recommended Attribute' feature of AnQiCMS for displaying article categories on the front end (such as headlines, recommendations)?

AnQiCMS provides rich and flexible tools for the organization and display of website content, among which the "recommendation attribute" feature is a very practical design.It allows us to add special tags to articles for classification display on the website front end, such as highlighting 'headlines' articles or displaying 'recommended' content in specific areas. ### Understanding "Recommended Properties" The "Recommended Properties" in AnQiCMS essentially act as metadata tags for articles, used to describe the characteristics or importance of the articles.In the background content management interface, when you edit or publish an article

2025-11-09

How to customize the shutdown prompt displayed to users when the website is closed?

During the operation of the website, we sometimes encounter situations where we need to temporarily close the website, such as system upgrades, server migrations, major content adjustments, or simply brief technical maintenance.How can you clearly and friendliness convey the current status of the website to the visitors at this time and provide necessary information, which is particularly important.AnQiCMS provides comprehensive shutdown management functions for website administrators, allowing us to easily set the shutdown status of the website and highly customize the display of shutdown prompt information.### Enable website shutdown feature When your website needs to be temporarily offline

2025-11-09