In website operation, the information display at the bottom of the website, especially the filing number and copyright statement, is not only a manifestation of website compliance, but also an important way to convey trust and professionalism to visitors.For websites built with AnQiCMS, it is a fundamental operation to flexibly and efficiently display these key information at the bottom of the website, which is essential for improving user experience and meeting legal and regulatory requirements.
In AnQiCMS background setting the filing number and copyright information
In AnQiCMS, managing the website's filing number and copyright information is very convenient. These core configuration items are all concentrated in the "Global Function Settings" on the back end.
To access these settings, you can log in to the AnQiCMS backend management interface, then navigate to the "Backend Settings
After entering the "Global Settings" page, you will see several important configuration fields:
- Filing NumberHere is used to fill in the备案number obtained by your website. Please ensure that the备案number filled in is accurate and error-free, usually it does not contain
-1Suffix-based pure filing number, for example, "Beijing ICP for XXXXXXXXXX number. - Copyright InformationThis field is used to fill in the copyright statement of your website.You can write copyright text as needed, for example, “u0026copy; 2023 Your company name.”}]All Rights Reserved.”。
Fill in this information and be sure to click the save button at the bottom of the page to ensure that your changes are recorded by the system.
Call information in the template at the bottom of the website
In AnQiCMS, the display of website content depends on template files. Usually, content like the record number and copyright information that is displayed on the bottom of all pages on the site is placed in a public template file, such asfooter.htmlOr, inbash.html(If your template considers the footer as a common base part).
AnQiCMS provides simple and easy-to-use template tags, allowing you to easily call the filing number and copyright information set in the background in your templates. You will use{% system %}this tag.
Specifically, the tag for calling the record number is{% system with name="SiteIcp" %}and the tag for calling the copyright information is{% system with name="SiteCopyright" %}.
In practical applications, the record number usually needs to be linked to the National Ministry of Industry and Information Technology government service platformhttps://beian.miit.gov.cn/),to facilitate user verification. 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|safeFilter to ensure that HTML code is parsed correctly instead of being escaped:
<div>{% system siteCopyright with name="SiteCopyright" %}{{siteCopyright|safe}}</div>
Here,siteCopyrightis what we provide for{% system with name="SiteCopyright" %}Variable names assigned to tags, through{{siteCopyright|safe}}to output its content and ensure that HTML is displayed normally.
Sample code.
Assume your website footer file (such astemplate/default/partial/footer.html) has the following general structure, 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 part of your website template, and save it to see the record number and copyright information displayed on the website front-end.
Precautions
After setting up the filing number and copyright information and modifying the template, there are several important aspects to pay attention to:
- Clear cache:AnQiCMS system has a caching mechanism, especially after modifying template files or core configuration, it is strongly recommended that you click the "Update Cache" button in the background to clear the system cache, ensuring that the latest changes take effect and are displayed on the website front-end immediately.
- Ensure information accuracyThe registration number is a legal requirement and must ensure that it is completely 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 are using multiple sets of templates or sub-templates, please make sure to make modifications in the correct template path.
By following these simple steps, your AnQiCMS website can professionally and legally display the record number and copyright information, adding an official touch and credibility to your website.
Common Questions (FAQ)
1. I have set up the record number and copyright information in the background, and also modified the template files, but why is the front page not displaying?
This is usually caused by 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 the "Update Cache" feature at the bottom of the left menu bar, and clear all caches.Additionally, check whether you have modified the correct template file, as well as whether the path to the template file is correct.Sometimes the browser's local cache may also affect the display, you can try clearing the browser cache or access in incognito mode.
2. The link next to the record numberhttps://beian.miit.gov.cn/Is it mandatory?
According to the Internet management regulations of Mainland China, all websites that have been registered must link the registration number to the Ministry of Industry and Information Technology's government service platform when displaying the registration number at the bottom.https://beian.miit.gov.cn/)。This is a mandatory requirement aimed at facilitating users to verify the authenticity of the website record information, and it is also an important part of the website's compliant operation.
3. If my copyright information contains special characters or HTML code (such as bold or links), will AnQiCMS display it correctly?
Yes, AnQiCMS can correctly handle copyright information containing special characters or HTML code. When you enter HTML code in the "Copyright Information" field on the backend, to ensure that these codes are parsed on the frontend instead of being displayed as text, you can use|safefilter. For example:{{siteCopyright|safe}}This filter tells the template engine that this content is safe HTML and can be output directly.