In website operations, the information display at the bottom of the website, especially the filing number and copyright statement, is not only an embodiment of website compliance, but also an important way to convey trust and professionalism to visitors.For websites built using AnQiCMS, flexibly and efficiently displaying these key information at the bottom of the website is a basic operation to improve user experience and meet legal and regulatory requirements.

Set the record number and copyright information in the AnQiCMS background

In AnQiCMS, managing the website's filing number and copyright information is very convenient. These core configuration items are all concentrated in the background "Global Function Settings".

To access these settings, you can log in to the AnQiCMS admin interface, then navigate to the "Backend Settings" area in the left menu, find and click on "Global Settings" in the dropdown options.

After entering the "Global Settings" page, you will see several important configuration fields:

  • Record numberHere is used to fill in the备案number that your website has obtained. Please ensure that the备案number filled in is accurate and error-free, usually it does not contain-1Suffixless pure filing number, for example, 'Jing ICP preparation XXXXXXXX number'.
  • Copyright informationThis field is used to fill in the copyright statement of your website. You can write the copyright text as needed, for example “©2023 Your Company Name. All Rights Reserved.

After filling out this information, be sure to click the save button at the bottom of the page to ensure that your changes are recorded by the system.

Information is called in the footer template of the website.

In AnQiCMS, the display of website content depends on template files. Typically, content such as the filing number and copyright information, which is displayed at the bottom of all pages on the site, is placed in a common template file, such asfooter.htmlorbash.html(If your template treats the footer as a common base part).

AnQiCMS provides simple and easy-to-use template tags, allowing you to easily call the record number and copyright information set in the background in your template. You will use{% system %}this tag.

In particular, the label for calling the record number is{% system with name="SiteIcp" %}and the label for calling the copyright information is{% system with name="SiteCopyright" %}.

In practical applications, the record number usually needs to be linked to the Ministry of Industry and Information Technology government service platform (https://beian.miit.gov.cn/),For easy verification by the user. Therefore, you can construct the display of the filing number in the template like this:

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

The display of copyright information is more direct. If your copyright information may contain HTML tags (such as bold, links, etc.), it is recommended to use|safeA filter to ensure that HTML code is parsed correctly instead of being escaped:

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

here,siteCopyrightis for{% system with name="SiteCopyright" %}The variable name assigned to the{{siteCopyright|safe}}to output its content and ensure that HTML is displayed normally.

Example Code

Assuming your website footer file (for exampletemplate/default/partial/footer.htmlThe general structure is as follows, you can integrate the above tag fragments into it:

<footer class="site-footer">
    <div class="container">
        <div class="footer-content">
            <!-- 其他底部内容,例如友情链接、联系方式等 -->
            
            <div class="footer-info">
                <p>
                    <a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">
                        {% system with name="SiteIcp" %}
                    </a>
                </p>
                {% system siteCopyright with name="SiteCopyright" %}<p>{{siteCopyright|safe}}</p>
            </div>
        </div>
    </div>
</footer>

Add this code to the footer of your website template, save it, and you will see the filing number and copyright information displayed on the website front end.

Points to note

After completing the settings of the filing number, copyright information, and template modification, there are several important points to pay attention to:

  • Clear cacheThe AnQiCMS system has a caching mechanism, especially after modifying template files or core configurations, it is strongly recommended that you click the 'Update Cache' button in the background to clear the system cache to ensure that the latest changes take effect immediately and are displayed on the website front end.
  • Ensure information accuracyThe registration number is a legal requirement, be sure to ensure that it is consistent with the information in your Ministry of Industry and Information Technology filing system. The year in the copyright information should also be updated in a timely manner to maintain its timeliness.
  • Template Location: Confirm that you are modifying the template file currently in use on the website. If you have used multiple sets of templates or sub-templates, make sure to modify them in the correct template path.

By following these simple steps, your AnQiCMS website can professionally and legally display the filing number and copyright information, adding an official and credible touch to your website.

Frequently Asked Questions (FAQ)

1. I have set up the record number and copyright information in the background, and also modified the template file, but why is the front page not displayed?

This is usually due to the website cache not being updated. AnQiCMS provides a caching mechanism to enhance website access speed, but this means that changes may not be reflected immediately.You can try to log in to the AnQiCMS backend, click on the "Update Cache" feature at the bottom of the left menu bar to clear all cache.In addition, check whether you have modified the correct template file, as well as whether the path of the template file is correct.Sometimes the browser's local cache may affect the display, you can try clearing the browser cache or accessing in incognito mode.

2. The link next to the record numberhttps://beian.miit.gov.cn/Is it mandatory?

In accordance with the Internet management regulations in Mainland China, all websites that have been filed must link the filing number to the Ministry of Industry and Information Technology's government service platform when displaying the filing number at the bottomhttps://beian.miit.gov.cn/This is a mandatory requirement designed to facilitate users in verifying the authenticity of the website record information, and is also an important part of website compliance operation.

3. If my copyright information contains special characters or HTML code (such as bold, links), will AnQiCMS display it correctly?

Yes, AnQiCMS can correctly handle copyright information that contains special characters or HTML code. When you enter HTML code in the "Copyright Information" field in the background, in order to ensure that these codes are parsed in the front-end instead of being displayed as text directly, you can use the template in|safea filter. For example:{{siteCopyright|safe}}This filter tells the template engine that this content is safe HTML and can be output directly.