In website operation, the copyright information and filing number at the bottom (footer) of the website is not only a manifestation of the website's professionalism, but also an important part of legal compliance.For websites built with AnQiCMS, setting and displaying these information uniformly is a simple and direct process.This article will guide you on how to easily complete these configurations in AnQiCMS, making your website look more professional and trustworthy.
第一步:In AnQiCMS backend, set copyright information and record number
AnQiCMS provides a centralized management interface, allowing you to easily set up the basic information of the website.
- Website record number (SiteIcp)This field is specifically used to fill in the recordation information of your website.The websites operating in mainland China must have a valid filing number, which is usually a string starting with '京ICP备', '沪ICP备', etc.Please ensure that the record number you fill in here is accurate and complete.AnQiCMS will directly call the content you enter here, so no additional links or decorations are needed.
- Copyright Information (SiteCopyright)Here is the place where you define the website copyright statement.Common copyright statement formats include “© Year Company Name.”}] All Rights Reserved.”。You can fill in according to your actual situation, for example, “© 2023 Your company name.”}] Retain all rights.or even more succinctly, your company name.
Fill in the details and remember to click the 'Save' button at the bottom of the page to ensure your changes take effect.
Step 2: Display this information uniformly in the website template.
Set up the background information first, and then it is time to display these contents on the website footer. In AnQiCMS, the website footer is usually located in the public template files (for examplebash.htmlorfooter.htmlIn,this ensures that all pages display the same information uniformly.
AnQiCMS's template system uses syntax similar to Django template engine, calling backend data through specific tags. To display the filing number and copyright information, we will usesystemLabel.
Find the code responsible for the footer section in your website template file. This is usually a<footer>Label inside. Then, you can insert the corresponding AnQiCMS tags as follows:
<footer>
<p>
{# 显示网站备案号,并为其添加指向工信部备案查询网站的链接 #}
<a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">{% system with name="SiteIcp" %}</a>
{# 显示版权信息,并动态获取当前年份 #}
<span>© {% now "2006" %} {% system with name="SiteCopyright" %}</span>
</p>
{# 其他页脚内容,例如友情链接、联系方式等 #}
{# ... #}
</footer>
Let me explain this code in detail:
{% system with name="SiteIcp" %}This tag will directly call the "website record number" content you fill in the "Global Function Settings" in the background.<a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">...</a>To facilitate user verification of the filing information, we usually link the filing number to the filing query website of the Ministry of Industry and Information Technology of the People's Republic of China.rel="nofollow"This is an HTML attribute that tells search engines not to follow this link, usually used for external links to avoid passing weight.target="_blank":This property will open links in a new tab, improving user experience and preventing users from leaving your website.
© {% now "2006" %} {% system with name="SiteCopyright" %}:This section is used to display the copyright statement.©This is the HTML entity for the copyright symbol.{% now "2006" %}This is a very practical AnQiCMS tag that dynamically retrieves the current year. This way, you don't have to manually update the year in the copyright statement every year."2006"Is the Go language representation of the date format string.{% system with name="SiteCopyright" %}This tag will call the 'Copyright Information' content you filled in the 'Global Function Settings' in the background.
After completing the template modification and saving it, refresh your website page, and you will see the updated copyright information and filing number in the footer.
Through the above simple two steps, you have successfully set and unified the copyright information and filing number in the AnQiCMS website.This not only enhances the professional image of the website, but also ensures the compliance of the website, making visitors trust your website more.
Common Questions (FAQ)
问:Why does the page not jump to the MIIT website or become a blank page after clicking the record number I have set?答:这通常是因为您在模板中为备案号添加的链接地址不正确,或者缺少了 English
target="_blank"属性。请检查您的模板代码,确保 EnglishhrefProperty points to the correct record query URL (https://beian.miit.gov.cn/) andtarget="_blank"The property has been added. At the same time, the record number itself is just a text string, AnQiCMS will not automatically turn it into a clickable link. You need to do it manually in the template using<a>each enclosed by tags.问:版权信息中的年份我希望它每年自动更新,AnQiCMS 能实现吗?答:完全可以。在模板中,您可以使用English
{% now "2006" %}This tag is used to dynamically display the current year. For example, write your copyright information template code as<span>© {% now "2006" %} 您的公司名称. 保留所有权利.</span>, so the year will be automatically updated every year without manual modification.问:I have updated the copyright information and filing number in the background, but the latest content does not display on the front page of the website immediately, what is the reason?答:This may be due to website caching.AnQiCMS To improve website access speed, caching mechanism will be enabled.When you modify the backend settings but the frontend is not updated, you can try clearing the website cache.You can find the "Update Cache" feature in the left navigation bar of the AnQiCMS admin panel, click to execute and the changes will take effect immediately.