How to display the website logo and filing information in the AnQi CMS front-end template?

Calendar 👁️ 68

In website operation, the logo and filing information are not only the core of brand recognition, but also an important link in establishing user trust and complying with regulations.The AnQi CMS has fully considered these key elements from the beginning, providing intuitive settings and flexible template calling methods, allowing website operators to easily display this information on the front end.

Understanding the template mechanism of Anqi CMS

Before delving into how to display the Logo and filing information, it will be very helpful to briefly understand the front-end template mechanism of Anqi CMS.The front-end template of AnQi CMS adopts a syntax style similar to Django, making content calls and logical controls intuitive and powerful.In the template file, you will mainly encounter two types of markers: double braces{{ 变量名称 }}Used to output variable values, as well as single curly braces and percentage signs{% 标签名称 %}Used to perform some logical operations or call specific function tags.

All template files are stored intemplateUnder the directory, usually some common code snippets, such as the header or footer of a website, will be abstracted out and placed in.partialThe catalog, or inbash.htmldefined in such a universal file to be reused across different pages. This structure greatly enhances the reusability and maintenance efficiency of the template.

Configure Logo and Filing Information

The prerequisite for displaying the website logo and filing information in the front-end template is that these contents have been correctly configured in the Anqi CMS backend. You need to log in to the website backend and navigate to the left menu bar of the『Backend Settings』and then select『Global Function Settings』.

In this interface, you will find several important configuration items:

  • Website LOGOClick the upload button, select the website logo image you have prepared. It is recommended to upload images of moderate size and small file size to ensure the website loads quickly.
  • Record numberIf your website has completed the filing, please fill in your ICP filing number here, for example, “Beijing ICP No. 12345678”.The template design of AnQi CMS usually handles the link jump of the filing number, allowing users to click and access the Ministry of Industry and Information Technology filing management system.

Properly configuring this information is the basis for the front-end template to call and display.

Display the website logo in the front-end template.

Once the Logo image is uploaded, the next step is to call and display it in the front-end template. Anq CMS provides a name ofsystemThe powerful tag, specifically used to obtain the global configuration information of the website. To display the website logo, you can use it in the template.systemLabel collaborationSiteLogofield to obtain the image address.

A common Logo display code snippet would look like this:

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

Here, {% system with name="SiteLogo" %}It will be replaced with the complete URL of the Logo image you upload on the backend. At the same time, we strongly recommend addingaltthe property, and using{% system with name="SiteName" %}Get the website name you have set as its value. This not only helps search engines understand the content of the image and improve SEO effectiveness, but also provides a good access experience for visually impaired users.

Display the record information in the front-end template

The record information is usually displayed in the footer of the website, as a sign of legal compliance. You can also usesystemtags to obtain the configured record number.

A typical display code snippet for a filing information may look like this:

<p>
    备案号:
    <a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">
        {% system with name="SiteIcp" %}
    </a>
    &copy; {% now "2006" %} {% system with name="SiteName" %}. All Rights Reserved.
</p>

In this example,{% system with name="SiteIcp" %}It will directly output the filing number you fill in the background. We wrap it in a<a>Tag within, linked to the official query page of the MIIT filing management systemhttps://beian.miit.gov.cn/. To comply with SEO practices, the following was addedrel="nofollow"Property, avoid passing the website weight to external links at the same timetarget="_blank"Ensure that it opens in a new window after clicking, without affecting the user's browsing experience on the current website. In addition,{% now "2006" %}The label can dynamically display the current year, combinedSiteNameTo form a complete copyright information.

Integrated into the public template file

In order to maintain consistency and management convenience of the website structure, it is recommended to place the calling code of the Logo and record information in a public template file. In the template structure of Anqi CMS, there is usuallybash.htmlorpartialUnder the directoryheader.htmlandfooter.htmlFiles such as these will be referenced by various pages of the website.

  • Website Logo: It is usually placed inheader.htmllocated at the top area of the website.
  • Record information: It is usually placed infooter.htmllocated at the website's

Related articles

How can AnQi CMS ensure website content security, prevent malicious scraping, and protect the display of picture copyrights?

In the era of the explosion of digital content, the security of website content, the prevention of malicious collection, and the protection of image copyrights have become core challenges that website operators cannot ignore.A stable and reliable content management system should be able to provide a set of effective solutions.AnQiCMS (AnQiCMS) as an enterprise-level content management system provides multi-dimensional functional support in this aspect, helping users effectively protect their digital assets.Firstly, in terms of the overall security of the website content, Anqi CMS provides a solid foundation of protection.It is developed based on Go language

2025-11-08

How to customize fields and display them in Anqi CMS for different content models (such as articles, products)?

AnQi CMS with its flexible content model design makes the management and display of website content extremely powerful.In addition to common fields such as article title, publication time, and content body, we often need to add unique information for specific content types (such as products, news, cases, etc.).For example, a product may require “model number”, “color options”, and “size”, while news may require “source of the article” or “author introduction”.The customized field feature of AnQi CMS is designed to meet this personalized need

2025-11-08

How to configure and display the Tag label list in the article content of AnQiCMS?

In website content operation, Tag tags (also known as keyword tags) play a crucial role.It can not only help users find the content they are interested in quickly, but also effectively enhance the relevance and depth of the website's content, and is also very beneficial for search engine optimization (SEO).Our CMS is well-versed in this, providing comprehensive Tag label configuration and display features, allowing us to easily add tags to articles and flexibly display them on the website front-end.Next, we will learn in detail how to play with the article Tag tag in Anqi CMS.

2025-11-08

How to perform an in-site search in AnQi CMS based on keywords and display the search results?

In website operation, the in-site search function is a key link to improve user experience and help visitors quickly find the content they need.A high-efficiency search mechanism can not only improve user satisfaction but also extend the time users spend on the website.AnQiCMS (AnQiCMS) provides us with flexible and powerful tools to easily implement this feature. To implement in Anqi CMS, searching within the site based on keywords and displaying the results involves three core steps: **building the search form, creating the search results page template, and using template tags to display content.** Next

2025-11-08

How does Anqi CMS implement the scheduled release of website content, so that it automatically displays at a specified time?

In content operations, efficiency and strategic thinking are the key to success.AnQiCMS (AnQiCMS) is well-versed in this field and offers a practical feature - scheduled content publishing, allowing website managers to accurately schedule the content release time, thus achieving automated operation and effectively enhancing the spread of content and website activity. ### Scheduling Posting: The Automation Tool for Content Operations Imagine that your website needs to publish industry news at a fixed time every morning, or plan a series of promotional articles in advance for specific holidays or marketing events. If relying on manual release by humans

2025-11-08

How to display the child category list of a specified category in Anqi CMS

The way website content is organized is crucial for user experience and information retrieval efficiency.A clear classification structure not only helps visitors quickly find the information they need, but also effectively enhances the professionalism and user retention rate of the website.In AnQiCMS (AnQiCMS), the flexible template tag system makes it very convenient to display the subcategory list of a specified category.### Core Tool: The Use of `categoryList` Tag To display the child category list of a specified category in Anqi CMS, we mainly use the `categoryList` tag

2025-11-08

How to set and display a custom template on a single page of AnQi CMS?

AnQi CMS, with its powerful flexibility and ease of use, has become a helpful assistant for many content operators.Especially in terms of content display, it provides us with rich customization space.For those web pages that require unique layouts or specific functions, such as "About Us", "Contact Us", or a special event landing page, we often hope that they can have a completely different visual style from ordinary articles or list pages.Aqii CMS provides a very convenient way for us to set exclusive custom templates for these single-page websites

2025-11-08

How to retrieve and display the document list under a specified Tag in AnQi CMS?

AnQiCMS (AnQiCMS) offers great convenience to website operators with its flexible content management and powerful template engine.In daily content operation, we often need to aggregate and display lists of related documents based on specific tags (Tag), such as 'Hot Topics', 'Technical Tips', or 'Product Reviews' and so on.This not only helps users quickly find the content they are interested in, but also effectively improves the internal link structure of the website, which is very beneficial for SEO.This article will delve into how to retrieve and display a list of documents under a specified tag in AnQiCMS

2025-11-08