How to display the website's Logo, filing number and copyright information in AnQiCMS templates?

Calendar 👁️ 57

When building a professional website, some basic and important information is also indispensable, such as the website logo, filing number, and copyright statement.These elements not only help enhance the professional image and user trust of the website, but are also crucial for compliance with specific regional regulations (especially the record-keeping requirements of Mainland China).In AnQiCMS (AnQiCMS), you can easily display this information in website templates using concise template tags.

AnQiCMS uses a template engine syntax similar to Django, making the writing of template files intuitive and efficient. All template files are stored intemplateUnder the directory, to achieve the common layout of the website, there is usually a basic layout file (such asbash.html) or a dedicated footer file (such aspartial/footer.htmlThese files contain the public part of the website, which is an ideal place to place the Logo, filing number, and copyright information. In the template, we mainly use{{变量名}}to output data, while{% 标签 %}It is used to implement logical control or call specific functions.

Show website logo

The website logo is the visual symbol of the brand, its correct display is crucial for establishing brand recognition.In the AnQiCMS backend, you can go to the 'Global Function Settings' page, find the 'Website Logo' option, upload and configure your website logo image.

To call this Logo in the template, you can use the built-in system.systemLabel. This tag is specifically used to obtain various configuration information of the background.

The following is an example of the code to call the Logo.

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

In this code block,{% system with name="SiteLogo" %}Dynamically output the URL of the Logo image you upload on the backend. To optimize search engine visibility (SEO) and enhance user experience (when the image cannot be loaded), we recommend that<img>tagsaltProperty.{% system with name="SiteName" %}It can be conveniently obtained to obtain the website name as the alternative text for the Logo, ensuring that the image content is friendly to search engines and visually impaired users. Wrap the Logo in<a>Linking to the homepage within the tag is also a common practice.

Display the website's filing number

It is a legal requirement for websites operating in mainland China to display the ICP filing number.AnQiCMS provides a dedicated field for entering the website filing number in the "Global Function Settings" on the back end.

Displaying the filing number in the template also depends on itsystemTags:

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

{% system with name="SiteIcp" %}The registration number you entered will be output directly. To comply with the specifications and provide a user verification method, we usually wrap the registration number text in a link to the Ministry of Industry and Information Technology government service platform (https://beian.miit.gov.cn/Add a link in therel="nofollow"attribute can tell the search engine not to track this link, buttarget="_blank"make sure that the link opens in a new window when clicked, to avoid users leaving your website.

Display website copyright information

A clear copyright statement helps protect your website content and show visitors the legality of the website.In the AnQiCMS backend's 'Global Function Settings' page, you can find the 'Copyright Content' field to fill in your copyright statement text.

Continue using to display this copyright information in the templatesystemTags:

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

here,{% system siteCopyright with name="SiteCopyright" %}Will retrieve the copyright content you set in the background. It is worth noting that if your copyright information contains HTML tags (such as those used for bold text or adding internal links), you need to use an additional|safeThe filter informs the AnQiCMS template engine that this content is safe and can be directly parsed and output as HTML code, rather than being escaped as plain text, thereby ensuring the correct display of the content.

Integration and practical suggestions

Generally, all the aforementioned information is usually placed in the footer area of the website to ensure consistency at the bottom of all pages. An example of a typical footer structure may look like this, you can use your own template file path, for exampletemplate/你的模板名称/partial/footer.htmlAdjust the design requirements:

<footer class="site-footer">
    <div class="container">
        <div class="footer-logo">
            <a href="/">
                <img src="{% system with name="SiteLogo" %}" alt="{% system with name="SiteName" %}" />
            </a>
        </div>
        <div class="footer-info">
            <p>
                <a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">
                    {% system with name="SiteIcp" %}
                </a>
            </p>
            <div>
                {% system siteCopyright with name="SiteCopyright" %}{{siteCopyright|safe}}
            </div>
        </div>
    </div>
</footer>

In this way, you can flexibly manage these important website information in the background, and ensure their correct presentation on the website front-end through concise template tags, thereby adding professionalism and credibility to your website.


Frequently Asked Questions (FAQ)

  • Q1: These Logo, filing number, and copyright information should be placed in which template file?Generally, this information belongs to the public part of the website and is recommended to be placed in the footer template file (such aspartial/footer.html) or the basic layout file (such asbash.htmlThe benefit is that you only need to edit it in one place, and this information can be displayed uniformly at the bottom of all pages, greatly simplifying management and maintenance work.

  • Q2: What will the template display if I do not fill in this information in the "Global Function Settings" in the background?If the corresponding fields in the background (such as website Logo, filing number, or copyright content) are empty, the template will callsystemWhen a tag is not output, it means that the corresponding area on the page will be blank. To optimize the user experience, you can consider adding conditional judgments in the template (such as{% if system.SiteLogo %}To control display, or provide some default placeholder text to ensure that the page layout is not adversely affected even if information is missing.

  • Q3: How to ensure that my website's Logo is displayed normally and is friendly to search engines?To balance the display of the Logo and SEO friendliness, we strongly recommend that you<img>Always include in the tagaltthe property, and using{% system with name="SiteName" %}to fill in, as shown in the example. In this way, even if the image fails to load, users and search engines can also throughaltUnderstand the meaning and content of this image. For a website logo, an important brand element, it is usually hoped that search engines can recognize and index it because it represents your brand.

Related articles

How to batch regenerate thumbnails for AnQiCMS to adapt to new display sizes or formats (such as WebP)?

In website operation, images are indispensable elements to attract visitors and convey information, while thumbnails play a key role in enhancing the beauty of the page and loading efficiency in scenarios such as content lists and article recommendations.But as website design evolves, the diversity of display devices increases, and the demand for performance optimization continues to rise, the original thumbnail size or format may no longer be applicable.For example, to improve the loading speed of the website, convert all images to a more efficient WebP format, or to adapt to the new responsive layout, adjust the thumbnail display size may be required.face this situation

2025-11-08

How to configure the thumbnail processing method of AnQiCMS to ensure the unified display effect of images on the front end?

In AnQiCMS, the unified display effect of images is crucial for the overall aesthetics and user experience of the website, especially for thumbnails.Whether it is an article list, product display, or category page, maintaining the consistent size and style of thumbnails can make the website look more professional and easier to browse.AnQiCMS provides flexible configuration options, allowing us to easily achieve this goal. ### Thumbnail location settings: Content settings are crucial To start configuring thumbnails, we need to log in to the AnQiCMS backend management interface. Find "System Settings" in the left navigation bar

2025-11-08

How to control access and display permissions for different user groups on AnQiCMS to achieve content monetization?

In the practice of content operation, effectively managing different users' access rights to content is a key link in realizing the commercialization of content value.Many content creators and enterprises hope to provide differentiated content services for users at different levels, such as exclusive paid membership, VIP content preview, or unlocking more in-depth information based on user levels.AnQiCMS provides a set of effective and flexible functions that help us easily meet these needs.### Core Mechanism: User Grouping and Content Permission Hierarchy AnQiCMS

2025-11-08

How to prevent AnQiCMS website content from being maliciously scraped and add watermarks to images?

In the digital age, the value of original content is self-evident; they are the core of attracting traffic, building brands, and improving SEO rankings for websites.However, the risk of malicious collection of content and theft of images is also increasing.This not only harms the original creators' labor成果, but may also cause the website's ranking in search engines to be damaged, affecting brand reputation.As a website operator, we naturally hope to effectively protect our digital assets.The Anqi CMS is an efficient and comprehensive content management system that has always given full consideration to the importance of content security from the beginning of its design

2025-11-08

How to build a multi-level dropdown menu and display the navigation list tags in AnQiCMS?

The website navigation serves as the core entry point for users to explore the website's content, and its structural design directly affects user experience and information acquisition efficiency.Especially multi-level dropdown menus can effectively organize a large amount of information, making the website structure clearer and more hierarchical.In Anqi CMS, building and displaying such a multi-level navigation system is flexible and intuitive. To successfully build a multi-level dropdown menu, we need to combine the backend navigation configuration with the tag call of the frontend template.### Step one: Understand the data structure of the Anqi CMS navigation list and the background configuration In Anqi CMS

2025-11-08

How to batch update display text and links for the 'Full Site Content Replacement' feature of AnQiCMS?

The "Full Site Content Replacement" feature of AnQiCMS: an efficient tool for batch updating website text and links Content updates and maintenance are an indispensable part of daily website operations.It is undoubtedly time-consuming and labor-intensive to manually modify a massive amount of content, whether it is to adapt to a new content strategy, optimize search engine rankings, or simply correct a spelling error or update a broken link.Fortunately, AnQiCMS provides a powerful feature named "Site-wide Content Replacement" which can help users complete these tasks in bulk and efficiently, greatly improving operational efficiency

2025-11-08

How to display custom Banner image and content in AnQiCMS single page?

In website operation, a well-designed single page often plays an important role in brand display, product introduction, or specific event promotion.A striking Banner area that can quickly capture the visitor's attention and convey core information.AnQiCMS as a flexible content management system, provides a very convenient way, allowing you to easily set and display custom Banner images and content on a single page.Next, we will explore how to implement this feature in AnQiCMS.## Step 1

2025-11-08

How does AnQiCMS ensure that mathematical formulas and flowcharts inserted in the Markdown editor are displayed normally on the front end?

In modern website content creation, Markdown is favored by a large number of content creators for its concise and efficient features.However, for websites that need to present complex information, such as mathematical formulas and flowcharts, how to seamlessly insert them into Markdown editors and ensure they are displayed normally on the front end is often a challenge for content operators.AnQiCMS (AnQiCMS) fully understands this need, through flexible configuration and standardized introduction methods, allowing these complex elements to be elegantly presented on your website

2025-11-08