The website's filing number and copyright information are important elements that demonstrate the compliance and professionalism of the website. They usually appear in the footer, providing visitors with a sense of trust.In AnQiCMS, setting and displaying this information is simple and efficient.We will guide you through this process, ensuring that the key content on your website's footer is clearly presented.

Step 1: Set the record number and copyright information in the AnQiCMS background

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 feature settings:In the left navigation bar of the background, find and click“Background Settings”and then selectGlobal function settings. This module assembles the core configuration of the website, including the name of the site, LOGO, and the filing number and copyright information we are setting today.

  2. Please fill in the record number:On the global feature settings page, you will see a name called“Record number”Input box.

    • Please accurately fill in the ICP record number of your website, for example, "Beijing ICP preparation number 12345678."}When called in the template, AnQiCMS can conveniently generate a link to the Ministry of Industry and Information Technology filing query platform, thereby verifying the legality of the website and enhancing user trust.Ensure the filled-in filing number is consistent with the Ministry of Industry and Information Technology information.
  3. Enter copyright information:Right after the filing 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 bold certain text 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.

After the background settings are completed, the next step is to display this information on the front page of the website.Generally, the record number and copyright information are displayed in the footer of the website, and this content is often public, existing in a separate template file.

  1. Determine the location of the template file:In AnQiCMS, the common parts of the website such as the header, footer, etc. are usually organized in independent template fragments, such as namedbash.htmlOrfooter.htmlThe file. These files are usually located in the directory of the template theme you are currently 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, specially used to retrieve global configuration information from the background. Through this tag, we can easily retrieve the filing number and copyright information.

    • Display the filing number:The registration 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 thisSiteIcpField:

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

      here,{% system with name="SiteIcp" %}The registration number you fill in backstage will be output directly. We have addedrel="nofollow"the attribute, which is a SEO optimization practice, telling the search engine not to track the weight of this link, andtarget="_blank"Make sure to open the link in a new window to enhance user experience.

    • Display copyright information:Copyright information can be output directly. If the content you fill in the background contains HTML tags (such as bold, links, etc.), you need to use|safeA filter to ensure 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,{% system with name="SiteCopyright" %}Will retrieve the copyright information from the background and pass it to a namedsiteCopyrightThe temporary variable follows immediately.{{ siteCopyright|safe }}It will pass.|safeThe filter informs the template engine that this content is safe HTML and can be rendered as is.

  3. Save the template file:Add 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 record number and copyright information are displayed clearly and accurately at the bottom of the website.By using AnQiCMS's concise and intuitive backend configuration and flexible template tags, you can easily manage and display this crucial information for the website.This not only meets the legal requirements, but also enhances visitors' trust in your website.


Frequently Asked Questions (FAQ)

  1. Q: Why did I set the filing number and copyright information, but it didn't display on the front end?

    • A:This is usually due to two reasons. First, make sure you click the 'Save' button at the bottom of the AnQiCMS backend after filling in the information.Secondly, the display on the front end of the website depends on the correct calling of template files, please check the template files currently used on your website (such as the footer filefooter.htmlorbash.html)Have you added the call number({% system with name="SiteIcp" %})and copyright information({% system with name="SiteCopyright" %})code, and is the position correct.(
  2. Q: I entered HTML code (such as<b>公司名称</b>), but when displayed on the front end, it shows plain text with angle brackets, why is that?

    • A:The AnQiCMS template engine, for security reasons, defaults to escaping output content to prevent malicious script injection (XSS attacks). If you fill in HTML tags in the background copyright information and want them to be parsed and rendered by the browser, you need to use the output content in the template call|safeFilter. The correct way to call it should be{% system with name="SiteCopyright" %}{{ siteCopyright|safe }}of whichsiteCopyrightIs the copyright information 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 registration number to the MIIT website?

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