When operating a website, the website name, Logo, filing number, and copyright information are core elements that constitute the brand image, establish user trust, and meet legal compliance requirements.For users of AnQiCMS, the system provides an intuitive and flexible way to manage and display this information, making your website not only rich in content but also professionally perfect in detail.
1. Centralized management: Configure these key information in the background.
The design philosophy of Anqi CMS is one of making website management simple and efficient.All this important website basic information is centralized in the "Global Function Settings" for unified configuration.
You can find them through the following path: Log in to the AnQi CMS backend -> Select "Backend Settings" from the left menu bar -> Click "Global Function Settings".
Here, you will see a series of configuration items related to the global information of the website:
- Website Name:This is the brand name of your website and also the page title (
<title>An important part of the label. Here, fill in your company or brand name, for example, "AnQi CMS official website." - Website Logo: Upload your website logo image. Once uploaded, it can be called and displayed at any location on the website, and it is of great importance to the visual identity of the website.
- Record number:For websites operating in mainland China, the filing number is an indispensable legal information.Enter your ICP record number here, for example, 'Guangdong ICP xxxxxxxx number'.The system will automatically handle the link format when displaying on the front end.
- Copyright information:The copyright statement at the bottom of the website usually includes the year and rights reserved information, for example “©2023 安企CMS. All Rights Reserved.
In addition to these default configuration items, if you have special brand information that needs to be displayed, you can also use the "custom setting parameters" to add more exclusive fields to meet personalized needs.
Second, flexible presentation: call this information in the template
After configuring the background information, the next step is how to display them in the website's frontend template.AnQi CMS uses a template engine syntax similar to Django, obtaining background data through specific "tags".
We mainly use for the global information of the websitesystemLabel. This label can easily retrieve the various data you have configured in the "Global Function Settings".
1. Display website name
The website name is not only used in the header and footer, but is also a key component of page titles in search engine optimization (SEO).
To display the website name, you can use it in the template.systemtags, and specifyname="SiteName":{% system with name="SiteName" %}
On the page<title>In the tag, you may wish to display both the title of the current page and the website name. At this point, you can usetdkand tags to combinesiteName=trueparameters to let the system automatically add the website name as a suffix to the page title:<title>{% tdk with name="Title" siteName=true %}</title>
2. Display website logo
The website logo is the visual symbol of the brand and is usually placed in the header of the website.
BysystemLabel, you can obtain the URL of the Logo image and then embed it into<img>tags:<img src="{% system with name="SiteLogo" %}" alt="{% system with name="SiteName" %}" />Here we also useSiteNameAs an imagealttext, enhancing accessibility and SEO friendliness.
3. Display the filing number
The record number is usually placed at the footer of the website and linked to the Ministry of Industry and Information Technology record management system.
Usesystemtags, and specifyname="SiteIcp"You can get the record number text:{% system with name="SiteIcp" %}To achieve click-through, it can be placed in<a>Inside the tag:<a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">{% system with name="SiteIcp" %}</a>
4. Display copyright information
Copyright information is usually also located in the footer of the website, indicating the ownership of the website content.
BysystemLabel, specifyname="SiteCopyright"You can obtain the copyright content:{% system with name="SiteCopyright" %}If your copyright information contains HTML code (such as bold, links, etc.), in order to ensure that they are parsed correctly rather than displayed as escaped, you can add them when calling|safeFilter:{% system siteCopyright with name="SiteCopyright" %}{{ siteCopyright|safe }}It is a good practice to first check if the copyright information exists before rendering:{%- system siteCopyright with name="SiteCopyright" %}
{%- if siteCopyright %}<p>{{ siteCopyright|safe }}</p>{% endif %}
3. Integrate them into the template: An example footer
To better understand the practical application of these tags, we can imagine a HTML snippet of a website footer that includes all the above information:
<footer class="main-footer">
<div class="container">
<div class="footer-content">
<a href="{% system with name="BaseUrl" %}" class="footer-logo">
<img src="{% system with name="SiteLogo" %}" alt="{% system with name="SiteName" %}" loading="lazy">
</a>
<p class="copyright-text">
© {% now "2006" %} {% system with name="SiteName" %}. All Rights Reserved.
</p>
{# 判断是否存在自定义版权信息并安全输出 #}
{%- system customCopyright with name="SiteCopyright" %}
{%- if customCopyright %}<p class="custom-copyright">{{ customCopyright|safe }}</p>{% endif %}
{# 判断是否存在备案号并链接到工信部 #}
{%- system icpNumber with name="SiteIcp" %}
{%- if icpNumber %}
<p class="icp-info">
<a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">{{ icpNumber }}</a>
</p>
{%- endif %}
</div>
</div>
</footer>
In this example,{% now "2006" %}The tag is used to dynamically display the current year, ensuring that the copyright year is always up to date, avoiding the trouble of manual updates.
By following these steps, you can easily manage and display the name, Logo, filing number, and copyright information of your website, adding professionalism and credibility to your site.
Frequently Asked Questions (FAQ)
Q1: I modified the website name or Logo in the background, but the front page did not update immediately, what is the reason for this? A1:This is usually due to caching. AnQi CMS uses caching to improve website access speed.You can try clearing your browser cache or clicking the "Update Cache" feature in the Anqi CMS backend (usually at the bottom or top right of the left menu) to force update the website cache.
Q2: Can I display different Logos or website names on different pages of the website? A2:By default, the Logo and website name in the "Global Feature Settings" are globally unified.If you need to display different logos or names on specific pages, you can consider using the 'Custom Fields' feature of Anqi CMS.For example, add a custom field "Page Logo" for a single page or category, then call the Logo of this custom field in the template of the page, if not, fall back to the global Logo.This requires some basic template modification skills.
Q3: If I need to add other compliance information (such as public security filing number) in addition to the default filing number, how should I handle it?
A3:The "Global Function Settings" of AnQi CMS supports adding "custom settings parameters". You can add a new parameter here, for examplename="GonganIcp",value="你的公安备案号"then follow{% system with name="GonganIcp" %}The way to call and display in the template.