Display the filing number at the bottom of the website, which is not only a requirement to comply with relevant laws and regulations, but also an important part of enhancing the professionalism and user trust of the website.For users of AnQiCMS, dynamically displaying the record number is a very convenient operation through the built-in powerful functions of the system, without frequent code modification, which greatly improves the maintenance efficiency of the website.
Set the record number content in the background
Firstly, we need to set your website filing number in the background management interface of Anqi CMS. This is the basis for all dynamically displayed content, ensuring the accuracy of the information.
Log in to the backend, then find the "" in the left navigation bar.Backend settingsThen click on "".Global SettingsIn the global settings page, you will see a field named "".Filing NumberInput box for 's input.Just fill in your website filing number accurately here, for example, "Guangdong ICP preparation No. 12345678".Please note that in most cases, you only need to fill in the main part of the record number and do not need to add an additional suffix like "-1".
After filling in, remember to click the "" at the bottom of the page.SaveClick the button to make the settings take effect. This way, the record number content is successfully stored in the system.
Dynamically call the record number in the website template.
The record number content has been saved on the backend, and the next step is to display it on the website's frontend.In most cases, the record number is displayed in the footer section of the website.bash.htmlOr independent.partial/footer.htmlIn such files.
The Anqi CMS provides a very convenient system setting label.systemWe can use it to dynamically retrieve all the system information settings from the backend. For the record number, we can useSiteIcpThis specific field name can be called.
You can find the appropriate position in the footer HTML code and insert the following code snippet:
<div class="footer-icp">
备案号:<a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">{% system with name="SiteIcp" %}</a>
</div>
Let's simply decode this piece of code:
{% system with name="SiteIcp" %}This line of code is crucial. It tells the security CMS to retrieve the global settings from the backgroundSiteIcpThe value of the (i.e., record number)field should be displayed here.<a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">...</a>We recommend enclosing the record number in a<a>tag. This has several advantages:href="https://beian.miit.gov.cn/"This is the official website for MIIT filing inquiries, providing a convenient query entrance, and enhancing the transparency and credibility of the website.rel="nofollow"This is a SEO** practice.It tells the search engine not to pass link equity to this external link, as it is an administrative link, which is usually not part of the core content of the website.target="_blank"When the user clicks the filing number, the filing query website will open in a new tab, to avoid the user leaving the current website and to enhance the user experience.
Paste this code into the appropriate position in the HTML footer of your website and save the modified template file.
Verify and refresh the cache
After completing the template modification, save the file and access your website's front-end page. You should be able to see the dynamically displayed record number at the bottom of the website.
If the registration number does not display immediately, or shows old content, don't forget to clear the website cache.The 'AnQi CMS backend' usually has a 'Update Cache' or 'Clear Cache' function at the top of the page or near the 'System Upgrade' module, just click it.Also, it is recommended to clear the cache of your browser itself (usually pressing Ctrl+F5 or Command+Shift+R can force refresh the page and clear the cache).
Easily display the website record number dynamically with the simple and intuitive backend settings and powerful template tag functions of AnQi CMS.This practice not only complies with regulations, but also makes your website maintenance more efficient and convenient. You can update the filing information without touching the code, allowing you to focus more energy on content operation.
Common Questions (FAQ)
Why does the front page still not display or display outdated information even though I have set up the record number according to the steps?
This is usually caused by caching.Firstly, please make sure that you have saved the备案号 in the "Global Settings" section of the AnQi CMS backend and that the template files have also been saved.Then, make sure to clear the security CMS system cache and try to force refresh your browser cache.bash.htmlorpartial/footer.html)and,{% system with name="SiteIcp" %}TagsnameIs the parameter spelled correctly?SiteIcpCase-sensitive).
2. Do I need to modify the template code if the website record number is updated?
Absolutely not!This is the advantage of using AnQi CMS for dynamically displaying the record number.When your record number changes, you just need to log in to the Anqi CMS backend, go to 'Backend Settings' -> 'Global Settings', find the 'Record Number' input box, update it to the new record number and save.The system will automatically update the front-end display, and you do not need to modify any template code.
3. Besides the record number, can I use a similar method to dynamically display other footer information?
Of course you can. The Anqi CMS'ssystemtags are very flexible. For example, you can{% system with name="SiteCopyright" %}to display the copyright information configured in the "Global Settings" of the backend. In addition,contact[en] Tag (such as{% contact with name="Cellphone" %}The contact information, such as phone number and email, can be dynamically displayed. For content that does not belong to the default system settings but is still desired to be centrally managed and dynamically displayed, you can add it through the 'Custom Settings Parameters' in the 'Global Settings'. ThensystemTagsnameCall your custom parameter name with the specified parameter.