As an experienced website operations expert, I am well aware of the importance of website compliance and brand information display for user trust and corporate image.AnQiCMS (AnQiCMS) provides powerful and flexible functions in these aspects, allowing you to easily manage and display the website's filing number and custom copyright information.Next, I will explain in detail how to implement these operations in AnQiCMS.
How to obtain and display the website's filing number and custom copyright information?
In today's internet environment, the filing information (ICP filing) of a website is not only a requirement of laws and regulations, but also the foundation for building user trust and showcasing the professionalism of the website.At the same time, a clear copyright statement can effectively protect your original content and enhance brand awareness.AnQi CMS fully considers these operational needs, providing an intuitive backend configuration and flexible template calling methods, allowing your website to show professionalism in every detail.
Step 1: Configure in the Anqi CMS background
All core website information, including filing numbers and copyright statements, can be managed uniformly in the Anqi CMS backend. This greatly simplifies the workload of website maintenance.
Enter the global function settings:First, you need to log in to the AnQiCMS admin interface. Find and click on the menu item in the left navigation menu:Backend settingsSelect thenGlobal feature settingsHere is gathered the basic information of the website and the global functional configuration.
Please fill in the record number:In the "Global Functional Settings" page, you will see a name called "Record numberThe input box.Please enter your website's ICP filing number accurately, for example, "Shanghai ICP for XXXXXXXXXXX.Here you only need to fill in the record number itself, without adding any other characters.The AnQi CMS will provide you with a convenient way to generate links in the template.
Set the copyright information:Immediately below the "registration number", you will find aCopyright informationThe text input area.This is the place where you can customize your website copyright statement.You can fill in what you need, such as “©2023 [Your Company Name].All Rights Reserved.” or any other detailed copyright statement.If you need to display the current year, template tags can also easily achieve this.
Custom extended information (optional):In addition to the filing number and copyright information, if your website has other specific information that needs to be displayed in the footer or global position, such as certain legal statements, partner links, etc., you can also use theCustom settings parametersFunction.Click the "Custom Setting Parameters" area at the bottom of the page, where you can add new parameter names (such as "ServiceHotline"), parameter values (such as "400-123-4567") and notes.These custom parameters can also be called through system tags in the front-end template, greatly enhancing the flexibility of the website.
After completing the above steps, don't forget to click the 'Save' button at the bottom of the page to ensure your configuration takes effect.
Step 2: Display the filing number and copyright information in the website template.
After configuring the background information, the next step is how to display these contents on the front page of your website.The AnQi CMS adopts a syntax similar to the Go language template engine, making it easy to implement data calls with concise tags.
Understanding AnQi CMS template tags:Using AnQi CMS template files:
.htmlSuffix, variables are enclosed in double curly braces:{{变量}}Invoke, while functional tags (such as conditional judgments, loops, and data acquisition) use single curly braces and percent signs{% 标签 %}Invoke. We mainly rely on system-level global configuration information.system.Call the record number:In your website template file (usually the footer)
footer.htmlor public layout filebase.htmlIn it, you can usesystemLabel to obtain the filing number. For user experience and compliance, the filing number is usually linked to the Ministry of Industry and Information Technology's government service platform.<p> <a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank"> {% system with name="SiteIcp" %} </a> </p>This code will display your record number and wrap it in an external link.
rel="nofollow"The attribute tells the search engine not to track this link,target="_blank"Make sure that the link opens in a new window when clicked to prevent the user from leaving your website.Copyright information:Similarly, use
systemTags can conveniently display the copyright information configured in the background.<div> {% system siteCopyright with name="SiteCopyright" %} {# 如果版权信息可能包含HTML标签,需要使用 |safe 过滤器来避免转义 #} {{ siteCopyright|safe }} </div>In the above code, I will
{% system with name="SiteCopyright" %}assign the result to a variablesiteCopyrightThen use{{ siteCopyright|safe }}to output.|safeThe filter is very important here, it tells the template parser that this content is safe HTML code that does not need to be escaped, thus ensuring your copyright notice (if it contains©Special HTML entities can be displayed correctly.Invoke custom parameters (if needed):If you add a custom parameter in the background, such as "ServiceHotline", you can also
systemTag to call it:<p>服务热线:{% system serviceHotline with name="ServiceHotline" %}{{serviceHotline}}</p>here,
serviceHotlineIt is the name of the parameter you have customized.
With these simple and powerful tags, you can flexibly display this important information anywhere on the website.usually, this content is concentrated in the footer area of the website, ensuring that users can easily find it while browsing any page.
Frequently Asked Questions (FAQ)
Q1: Where is it recommended to place the registration number and copyright information on a website?A1: Registration number and copyright information are usually recommended to be placed in the footer area of the website.This is the industry convention, as well as the position where users are accustomed to finding this information.Place it at the footer to ensure it is displayed on all pages of the website while not interfering with the reading of the main content.
Q2: Can Anqi CMS automatically display the current year in my copyright information?A2: It's okay. When writing copyright information, you can use the built-in Anqi CMS.nowUse a tag to dynamically retrieve the current year. For example, you can fill it like this in the background "Copyright Information" field:©{% now "2006" %} [您的公司名称]. All Rights Reserved.of which{% now "2006" %}It will automatically be rendered as the current year.
Q3: Can I reuse or manage different filing numbers and copyright information across multiple sites?A3: Of course you can.The Anqi CMS supports multi-site management.Each site has an independent "global feature settings", so you can configure an independent record number and copyright information for each site.systemThe label defaults to fetching the configuration of the current site, no additional specification is required. If cross-site invocation is needed, it can be done throughsiteIdParameters are used to specify the data to be retrieved from other sites, but this is usually not applicable to sites with unique content such as filing numbers and copyright information.
By following these detailed steps and examples, you should have a clear understanding of how to obtain and display the website filing number and custom copyright information in AnQiCMS.These seemingly minor details actually play a significant role in enhancing the professionalism of the website and building user trust.Leverage the powerful features of Anqi CMS to make your website operation more efficient and standardized.