How to display system-level configurations such as the website logo, filing number, copyright information, etc.

Calendar 👁️ 82

The brand identity, legal statements, and core contact information of a website, such as the logo, filing number, and copyright information, are an indispensable part of the professional image of the website.They not only convey trust and standardization to visitors, but are also important for search engine optimization and legal compliance.In Anqi CMS, managing and displaying these system-level configurations becomes extremely intuitive and efficient.

Backend settings: The 'Control Center' for website information

SecureCMS centralizes these core website information in the background's "Global Settings", making management clear at a glance.

First, you can log in to the Anqi CMS backend management interface, find and click on "Backend Settings" in the left navigation bar, and then select "Global Settings".This assembles the most fundamental and important system-level configuration items of the website.

  1. Website Logo (SiteLogo)The website's logo is the core of the brand image. On the "Global Settings" page, you will see the item "Website Logo".Click the upload button to upload your meticulously designed logo image and apply it to the website.The AnQi CMS usually provides image management functions, you can select from the uploaded image library, or directly upload new images.

  2. Website Record Number (SiteIcp)For websites operating in mainland China, the filing number is a legal requirement.In the "Record Number" field, you only need to fill in your website record number, for example, "Guangdong ICP preparation xxxxxxxx number".The AnQi CMS is usually automatically generated to call the front-end template, which links to the MIIT record query website to ensure compliance.

  3. Copyright Information (SiteCopyright)Copyright information is usually found in the footer of a website, stating the ownership of the content.In the 'Copyright Content' field, you can freely fill in your copyright statement, for example, “©2023 Your Company Name. All Rights Reserved.If you wish to have the year automatically updated, Anqi CMS also provides a convenient template tag to achieve this function.

In addition to the above core information, you will also see other important configurations in the "Global Settings", such as:

  • Website Name (SiteName)This is usually used for website titles and logosaltproperties and other places where the website name needs to be displayed
  • Website Home Page Address (BaseUrl)This is the root domain or access address of the website, which is crucial for generating correct internal links and resource paths.
  • Mobile URL (MobileUrl)If your website has a separate mobile domain, you can set it here.
  • Template Static File URL (TemplateUrl)This address is used to build the path of static resources such as CSS, JS, images, and so on referenced in the template.
  • Custom parameterIf the existing fields do not meet your specific needs, for example, if you want to add a specific website slogan or customer service hotline, you can add new configuration items through "Custom Settings Parameters", name and assign them values, which greatly enhances the flexibility of the system.

Front-end display: Let information leap onto the screen

In AnQi CMS, displaying the system information configured on the backend on the website front end is very simple. This mainly depends on its powerful template tag system, especially{% system %}Label. This tag helps you easily retrieve and display all the information defined in the "Global Settings" in the template.

You can do this in the template file (such as usually located intemplate/您的模板目录/partial/footer.htmlThe footer file orbase.htmletc.) to call this information:

  1. Show website logo: You may need to display the logo at the header or footer of the website. Combine the website name asaltattribute, and write it like this:

    <img src="{% system with name="SiteLogo" %}" alt="{% system with name="SiteName" %}" />
    

    here,srcThe attribute obtained the address of the uploaded Logo imagealtThe attribute obtained the website name, which is helpful for SEO and accessibility

  2. Display the filing numberThe record number usually contains a link to the MIIT website. Here is a typical call example:

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

    rel="nofollow"The attribute tells the search engine not to track this link,target="_blank"then the link will open in a new window.

  3. Display copyright information: Copyright information typically includes the company name and year. To automatically update the year, you can use{% now "2006" %}tags to get the current year:

    <div>
        {% system with name="SiteCopyright" %} &copy; {% now "2006" %}.
    </div>
    

    Please note that if your copyright content already includes the year, you can omit it{% now "2006" %}. If the 'Copyright Content' field supports HTML and you have filled in HTML content in the background, then when outputting in the front-end, it may be necessary to use{{ SiteCopyright|safe }}to prevent the HTML from being escaped.

  4. Build the basic link and static resource path of the website:BaseUrlandTemplateUrlThe tag is very useful when building internal links and introducing static resources in the website:

    <link href="{% system with name="TemplateUrl" %}/css/style.css" rel="stylesheet">
    <a href="{% system with name="BaseUrl" %}">返回网站首页</a>
    
  5. Invoke custom parameters: If you have added a custom parameter in the background "Global Settings", such as one namedHelpUrlhelp center link, you can call it like this:

    <a href="{% system with name="HelpUrl" %}">获取帮助</a>
    

Practice exercise: A typical footer layout

By using the above tags, you can easily build a footer that includes all the necessary system information. For example:

<footer>
    <div class="container">
        <div class="footer-logo">
            <a href="{% system with name="BaseUrl" %}">
                <img src="{% system with name="SiteLogo" %}" alt="{% system with name="SiteName" %}" />
            </a>
        </div>
        <div class="footer-info">
            <p>{% system with name="SiteCopyright" %} &copy; {% now "2006" %}.</p>
            <p><a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">{% system with name="SiteIcp" %}</a></p>
            <p>联系我们:<a href="mailto:{% contact with name="Email" %}">{% contact with name="Email" %}</a></p>
            {%- system customFooterText with name="CustomFooterText" %} {# 假设您自定义了一个页脚文本参数 #}
            {%- if customFooterText %}
            <p>{{ customFooterText|safe }}</p>
            {%- endif %}
        </div>
    </div>
</footer>

Through the above content, you can see that Anqi CMS, through centralized background configuration and flexible template tags, makes the management and display of system-level configurations such as website Logo, filing number, copyright information, etc., simple and powerful.This not only enhances the professionalism of the website, but also greatly reduces the workload of the website operator.

Frequently Asked Questions (FAQ)

  1. Q: Why didn't the front page update immediately after I modified the Logo or filing number in the background?A: This is usually caused by caching. First, you can try to click the 'Update Cache' feature in the AnQi CMS backend to clear the system cache.Secondly, the browser may also cache website content, you can try clearing the browser cache or accessing the website in incognito mode to view the updated effect.

  2. Q: If my website has multiple language versions, can each version set a different Logo or filing number?A: The AnQi CMS supports multi-site management and multilingual functionality. If you create independent sites for different languages (such asen.yourdomain.comandcn.yourdomain.comThen each site can configure independent Logo, filing number and other information in their respective "global settings".If you want to implement multilingualism through template logic on the same site, you can consider using 'custom settings parameters' in conjunction with conditional judgments in the template to achieve this.

  3. Q: Besides Logo, filing number, and copyright information, how can I obtain common system-level information through{% system %}tags?A:{% system %}The tag is very powerful, in addition to the information mentioned above, you can also obtain

Related articles

How to build and display a custom field comment form on the front-end page?

When you want website visitors to be able to interact with you, such as submitting questions, providing feedback, or making appointments, a well-functioning contact form is essential.AnQiCMS provides a very flexible and powerful message management function, the core of which is to support custom message fields, allowing you to build personalized forms according to your actual business needs.This article will guide you on how to build and display these comment forms with custom fields on the front-end page.Why do you need a custom message form?

2025-11-08

How to display the list of user comments on articles in AnQi CMS?

In AnQi CMS, allowing users to comment on articles and clearly displaying these comments is an important aspect of enhancing the interactivity and user engagement of the website.AnQiCMS's powerful template engine and built-in features make this process flexible and efficient.This article will introduce in detail how to integrate the comment list and its related functions on the article detail page.

2025-11-08

How does Anqi CMS display and manage website friend links?

In website operation, friendship links play an important role. They not only help to improve the website's search engine ranking (SEO), but also bring valuable traffic, and are also a manifestation of cooperation and mutual trust between websites.Anqi CMS is well-versed in this, providing website operators with a直观 and efficient buddy link management and display solution, allowing you to easily master this feature.Next, we will delve into how to manage friend links in the background, to how to flexibly display them on the website frontend, and provide you with a detailed explanation of the friend links feature of Anqi CMS.

2025-11-08

How to display a list of recommended content related to the current article?

In content operation, guiding users to discover more interesting content is one of the key strategies to enhance user experience and extend the time spent on the website.AnQiCMS (AnQiCMS) provides very flexible and powerful features, helping us easily achieve the goal of displaying a list of recommended content related to the current article.Why is it necessary to have relevant recommended content?

2025-11-08

How to embed and display mathematical formulas or flowcharts from the Markdown editor in the content?

In modern content operation, the professionalism and readability of the content are equally important.Especially when our website involves fields such as science, education, engineering, and so on, how to clearly and beautifully present complex mathematical formulas or logically rigorous flowcharts in articles often becomes the key to improving user experience.AnQi CMS understands this need, integrating a powerful Markdown editor and combining it with simple frontend configuration, allowing your website to easily present these professional contents.### First Step

2025-11-08

How does Anqi CMS handle images in content to optimize loading speed and display quality (WebP, compression)?

In the content of the website, images play a crucial role, they can enrich the visual effects and convey complex information.However, unoptimized images are often the culprit for slow website loading and poor user experience.As content operators, we fully understand the value of image optimization in improving website performance and user retention.AnQiCMS provides a series of powerful and intelligent functions in image processing, aiming to help us easily achieve a balance between image loading speed and display quality.

2025-11-08

How to retrieve and display custom parameters of content models such as articles, products, etc. in a template?

In Anqi CMS, when managing website content, we often encounter the need to display specific information in addition to standard fields such as title and text.For example, when operating an e-commerce website, in addition to the name and description of the product, it may also be necessary to display 'material', 'origin', 'warranty period', and so on;Or you may be running an information blog, where articles may need to display 'author source', 'publisher' and other information.The flexible content model design of AnQi CMS is to meet this diverse content display requirement.Today, let's delve deeper into the topic

2025-11-08

How to dynamically display the name, description, and link of content categories in a template?

In website operation, clearly displaying content categories not only helps users quickly find the information they need, but is also a key link to improve website usability and search engine optimization (SEO).AnQiCMS (AnQiCMS) with its flexible template engine allows us to easily dynamically call and display the names, descriptions, and links of various content categories in website templates.Today, let's delve deeper into how to achieve this goal in templates, making your website content more vivid and efficient.### Understanding Content Classification in AnQi CMS In the AnQi CMS backend management system

2025-11-08