The website备案number and copyright information are important elements that demonstrate the compliance and professionalism of a website. They usually appear in the footer, providing a trust foundation for visitors.In AnQiCMS, setting and displaying this information is simple and efficient.We will guide you through this process, ensuring that these key contents are clearly presented at the bottom of your website.

第一步:In AnQiCMS backend, set the record number and copyright information

First, log in to your AnQiCMS backend management interface. This is the starting point for all website basic information configuration.

  1. Navigate to the global function settings:In the left navigation bar on the back end, find and click“Backend Settings”Then, select.“Global Function Settings”This module collects the core configuration of the website, including the site name, LOGO, and the filing number and copyright information we will set today.

  2. Fill in the record number:On the global function setting page, you will see a name called“Record Number”the input box.

    • Here, please accurately fill in your website's ICP filing number, for example, “Beijing ICP No. 12345678”.AnQiCMS in templates can conveniently generate links to the MIIT record query platform, thus verifying the legality of the website and enhancing user trust.Please ensure that the备案number filled in is consistent with the Ministry of Industry and Information Technology information.
  3. Enter the copyright information:Right after the record number, you will find“Copyright Information”field.

    • This field is used to display the copyright statement of your website, for example “© 2023 Your Company Name.”}]All Rights Reserved.”AnQiCMS is very flexible, this field supports direct input of plain text, as well as content containing HTML tags.This means you can add links to the company name or make certain text bold to make the copyright statement more expressive.
  4. Save settings:After filling in, be sure to scroll to the bottom of the page and click“Save”Button. In this way, your filing number and copyright information have been successfully stored in the AnQiCMS system.

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

The background settings completed, the next step is to display this information on the website's front page.通常,备案号和版权信息会显示在网站的页脚部分,这部分内容往往是公共的,存在于一个单独的模板文件中。

  1. Confirm the location of the template file:In AnQiCMS, the header, footer, and other common parts of the website are usually organized in independent template fragments, such as namedbash.htmlorfooter.htmlThe files. These files are usually located in the directory of the current template theme you are using./templatefolder, or itspartial/In the subdirectory. You can find the corresponding file responsible for rendering the footer according to the template structure you are using.

  2. Use system tags to call information:AnQiCMS provides a namedsystemThe powerful tag, specifically used for retrieving the global configuration information of the background. Through this tag, we can easily retrieve the filing number and copyright information.

    • Display filing number:The filing number usually needs to be linked to the Ministry of Industry and Information Technology's government service platform, which is both a legal requirement and can enhance the professionalism of the website. You can use it in the footer template like thisSiteIcpFields:

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

      Here,{% system with name="SiteIcp" %}It will directly output the filing number you fill in the background. We have addedrel="nofollow"attributes, which is a SEO optimization practice, telling the search engine not to track the weight of this link, as welltarget="_blank"Ensure that the link is opened in a new window after clicking, improving the user experience.

    • Display copyright information:Copyright information can be output directly. If the content you enter in the background includes HTML tags (such as bold, links, etc.), you need to use|safeThe filter ensures that HTML code is parsed correctly and not escaped as plain text. For example:

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

      In this code block,{% system with name="SiteCopyright" %}Will retrieve the copyright information from the background and pass its content to a namedsiteCopyrightauto{{ siteCopyright|safe }}auto|safeauto

  3. autoAdd the above code snippet to the corresponding position in your footer template file and save the changes.

After completing these steps, refresh your website page, and you will find that the filing number and copyright information are clearly and accurately displayed at the bottom of the website.Through AnQiCMS's simple and intuitive backend configuration and flexible template tags, you can easily manage and display these vital information for the website.This not only meets the legal requirements, but also enhances visitors' trust in your website.


Common Questions (FAQ)

  1. Q: Why doesn't the front-end display the record number and copyright information that I have set?

    • A:This is usually due to two reasons.Firstly, please make sure that you have clicked the "Save" button at the bottom of the AnQiCMS backend page after filling in the information.footer.htmlorbash.html)中,whether the calling number has been added{% system with name="SiteIcp" %})and copyright information{% system with name="SiteCopyright" %})code, and the code position is correct.
  2. Q: I entered HTML code (such as<b>公司名称</b>) in the copyright information on the back end, but it is displayed as plain text with angle brackets on the front end. Why is that?

    • A:AnQiCMS's template engine, for security reasons, defaults to escaping output content to prevent malicious script injection (XSS attack). If you enter HTML tags in the copyright information on the back end and want them to be parsed and rendered by the browser, you need to use the output content when calling it in the template.|safeFilter. The correct way to call it should be.{% system with name="SiteCopyright" %}{{ siteCopyright|safe }}where,siteCopyrightIt is the copyright information content obtained.|safeTell the template engine that this content is safe HTML and does not need to be escaped.
  3. Q: Is it necessary to link the filing number to the MIIT website?

    • A:Yes, according to relevant laws and regulations of China, all websites providing internet information services in the mainland of China must prominently display the filing number at the bottom of the website, and this filing number usually needs to provide a link to the Ministry of Industry and Information Technology's government service platform (beian.miit.gov.cn).This is not only a compliance requirement, but also convenient for users to query and verify website information, thereby increasing the credibility and transparency of the website.