How to obtain and display the website's filing number and custom copyright information?

Calendar 👁️ 320

As an experienced website operations expert, I am well aware of the importance of website compliance and brand information display for user trust and corporate image.AnQiCMS (AnQiCMS) provides powerful and flexible functions in these aspects, allowing you to easily manage and display the website's filing number and custom copyright information.Next, I will explain in detail how to implement these operations in AnQiCMS.


How to obtain and display the website's filing number and custom copyright information?

In today's internet environment, the filing information (ICP filing) of a website is not only a requirement of laws and regulations, but also the foundation for building user trust and showcasing the professionalism of the website.At the same time, a clear copyright statement can effectively protect your original content and enhance brand awareness.AnQi CMS fully considers these operational needs, providing an intuitive backend configuration and flexible template calling methods, allowing your website to show professionalism in every detail.

Step 1: Configure in the Anqi CMS background

All core website information, including filing numbers and copyright statements, can be managed uniformly in the Anqi CMS backend. This greatly simplifies the workload of website maintenance.

  1. Enter the global function settings:First, you need to log in to the AnQiCMS admin interface. Find and click on the menu item in the left navigation menu:Backend settingsSelect thenGlobal feature settingsHere is gathered the basic information of the website and the global functional configuration.

  2. Please fill in the record number:In the "Global Functional Settings" page, you will see a name called "Record numberThe input box.Please enter your website's ICP filing number accurately, for example, "Shanghai ICP for XXXXXXXXXXX.Here you only need to fill in the record number itself, without adding any other characters.The AnQi CMS will provide you with a convenient way to generate links in the template.

  3. Set the copyright information:Immediately below the "registration number", you will find aCopyright informationThe text input area.This is the place where you can customize your website copyright statement.You can fill in what you need, such as “©2023 [Your Company Name].All Rights Reserved.” or any other detailed copyright statement.If you need to display the current year, template tags can also easily achieve this.

  4. Custom extended information (optional):In addition to the filing number and copyright information, if your website has other specific information that needs to be displayed in the footer or global position, such as certain legal statements, partner links, etc., you can also use theCustom settings parametersFunction.Click the "Custom Setting Parameters" area at the bottom of the page, where you can add new parameter names (such as "ServiceHotline"), parameter values (such as "400-123-4567") and notes.These custom parameters can also be called through system tags in the front-end template, greatly enhancing the flexibility of the website.

After completing the above steps, don't forget to click the 'Save' button at the bottom of the page to ensure your configuration takes effect.

Step 2: Display the filing number and copyright information in the website template.

After configuring the background information, the next step is how to display these contents on the front page of your website.The AnQi CMS adopts a syntax similar to the Go language template engine, making it easy to implement data calls with concise tags.

  1. Understanding AnQi CMS template tags:Using AnQi CMS template files:.htmlSuffix, variables are enclosed in double curly braces:{{变量}}Invoke, while functional tags (such as conditional judgments, loops, and data acquisition) use single curly braces and percent signs{% 标签 %}Invoke. We mainly rely on system-level global configuration information.system.

  2. Call the record number:In your website template file (usually the footer)footer.htmlor public layout filebase.htmlIn it, you can usesystemLabel to obtain the filing number. For user experience and compliance, the filing number is usually linked to the Ministry of Industry and Information Technology's government service platform.

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

    This code will display your record number and wrap it in an external link.rel="nofollow"The attribute tells the search engine not to track this link,target="_blank"Make sure that the link opens in a new window when clicked to prevent the user from leaving your website.

  3. Copyright information:Similarly, usesystemTags can conveniently display the copyright information configured in the background.

    <div>
        {% system siteCopyright with name="SiteCopyright" %}
        {# 如果版权信息可能包含HTML标签,需要使用 |safe 过滤器来避免转义 #}
        {{ siteCopyright|safe }}
    </div>
    

    In the above code, I will{% system with name="SiteCopyright" %}assign the result to a variablesiteCopyrightThen use{{ siteCopyright|safe }}to output.|safeThe filter is very important here, it tells the template parser that this content is safe HTML code that does not need to be escaped, thus ensuring your copyright notice (if it contains&copy;Special HTML entities can be displayed correctly.

  4. Invoke custom parameters (if needed):If you add a custom parameter in the background, such as "ServiceHotline", you can alsosystemTag to call it:

    <p>服务热线:{% system serviceHotline with name="ServiceHotline" %}{{serviceHotline}}</p>
    

    here,serviceHotlineIt is the name of the parameter you have customized.

With these simple and powerful tags, you can flexibly display this important information anywhere on the website.usually, this content is concentrated in the footer area of the website, ensuring that users can easily find it while browsing any page.


Frequently Asked Questions (FAQ)

Q1: Where is it recommended to place the registration number and copyright information on a website?A1: Registration number and copyright information are usually recommended to be placed in the footer area of the website.This is the industry convention, as well as the position where users are accustomed to finding this information.Place it at the footer to ensure it is displayed on all pages of the website while not interfering with the reading of the main content.

Q2: Can Anqi CMS automatically display the current year in my copyright information?A2: It's okay. When writing copyright information, you can use the built-in Anqi CMS.nowUse a tag to dynamically retrieve the current year. For example, you can fill it like this in the background "Copyright Information" field:&copy;{% now "2006" %} [您的公司名称]. All Rights Reserved.of which{% now "2006" %}It will automatically be rendered as the current year.

Q3: Can I reuse or manage different filing numbers and copyright information across multiple sites?A3: Of course you can.The Anqi CMS supports multi-site management.Each site has an independent "global feature settings", so you can configure an independent record number and copyright information for each site.systemThe label defaults to fetching the configuration of the current site, no additional specification is required. If cross-site invocation is needed, it can be done throughsiteIdParameters are used to specify the data to be retrieved from other sites, but this is usually not applicable to sites with unique content such as filing numbers and copyright information.


By following these detailed steps and examples, you should have a clear understanding of how to obtain and display the website filing number and custom copyright information in AnQiCMS.These seemingly minor details actually play a significant role in enhancing the professionalism of the website and building user trust.Leverage the powerful features of Anqi CMS to make your website operation more efficient and standardized.

Related articles

How to display the current website's name and Logo in Anqi CMS template?

As an experienced website operations expert, I am well aware of the importance of a website's name and logo in brand image and user recognition.In a powerful and flexible content management system like AnQiCMS, presenting these core brand elements in the website template not only enhances professionalism but also helps with search engine optimization (SEO).Today, I will give a detailed explanation of how to easily display the current website name and logo in AnQiCMS templates, making your brand shine in the eyes of users.--- ### AnQi CMS Template

2025-11-07

How to perform security filtering on the date string generated by the `stampToDate` tag to prevent XSS attacks?

As an experienced website operation expert, I am happy to give you a detailed explanation of how to ensure the security of the date string generated by the `stampToDate` tag in AnQiCMS, effectively preventing XSS attacks. --- ### Ensure Security: How to effectively prevent XSS attacks in the date string generated by the `stampToDate` tag in AnQiCMS In the template development of AnQiCMS, the `stampToDate` tag is a powerful helper for us to process timestamps and format them into readable date strings.

2025-11-07

What is the main difference between the `now` tag and the `stampToDate` tag in the time display in `tag-system.md`?

As an experienced website operations expert, I am well aware that how to flexibly and accurately display time information in a content management system is crucial for the vitality of website content and user experience.AnQiCMS (AnQiCMS) takes this point into full consideration in the design of template tags, providing various methods to handle time.Today, let's delve into two commonly used and easily confused tags - the `now` tag and the `stampToDate` tag, analyzing their main differences in time display.

2025-11-07

In AnQiCMS, can the `stampToDate` tag handle date display habits of different regions (such as China and the United States)?

Unlock AnQiCMS `stampToDate`: Easily Master Global Date Display Habits In the wave of global content operations, the subtle differences in date and time formats often become key factors affecting user experience.A website that can intelligently adjust the date display according to the visitor's regional habits will undoubtedly greatly enhance its professionalism and user-friendliness.

2025-11-07

How to obtain the basic configuration information of a specified site when operating multi-site?

AnQiCMS (AnQiCMS) provides great convenience for operators with its excellent multi-site management capabilities.Whether it is multiple brand sites under your company, regional sub-sites, or the need to build independent content portals for different business lines, AnQiCMS can efficiently manage them on a unified backend.However, in actual operation, you may encounter such a scenario: in a site template, it is necessary to obtain the basic configuration information of another site, such as its website name, logo, URL, or contact information.

2025-11-07

How to dynamically obtain the path of the static resources used by the current website template?

As an experienced website operations expert, I know how important efficiency and flexibility are in managing websites, especially content management systems (CMS).AnQiCMS as an enterprise-level content management system based on the Go language has fully considered these requirements from the very beginning, especially in terms of template and resource management, providing a powerful and elegant solution.Today, let's delve deeply into a very practical topic in template development: 'How to dynamically obtain the static resource path of the template currently used by the AnQiCMS website?'}]

2025-11-07

How to determine if a website is in a shutdown state and display user-friendly prompt information?

## The website operation 'shut down' maintains dignity: AnQi CMS helps you shut down gracefully and provide friendly prompts In the daily operation of the website, we will always encounter times when we need to temporarily 'shut down'.For reasons such as system upgrades, large-scale content adjustments, data migration, or for security maintenance, content filling and review before the launch of a new website, a proper shutdown process is crucial.This concerns not only the security and stability of the website's data, but also directly affects the user experience and the evaluation of the website by search engines.

2025-11-07

How to display the current year or a specific format of time in the template in real-time?

In website operation, the display of time information is ubiquitous, whether it is the current year in the copyright statement, the time of article publication, or the deadline of the event, dynamic and accurate time display is crucial for improving user experience and content timeliness. As an enterprise-level CMS dedicated to efficient content management, AnQiCMS (AnQiCMS) understands this need and therefore provides intuitive and powerful tags in the template system, allowing you to easily display the current year or a custom time format in the website template at any time.

2025-11-07