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

Calendar 👁️ 67

AnQiCMS (AnQiCMS) provides an intuitive and powerful template system, allowing us to flexibly display various core information on the website.Whether it is the name of the website, Logo, filing number, or copyright statement, these are all key elements that constitute the brand image of the website, meet compliance requirements, and enhance user trust.This article will delve into how to call and display this information in the AnQiCMS template, ensuring that your website content is complete and professional.

AnQiCMS template basics: Quick review

In AnQiCMS, template files are usually named with.htmlsuffix and are stored in the root directory of the website./templateIn the folder. The system uses a syntax similar to the Django template engine, which makes content calls and logical control quite intuitive.

  • Variable displayUsing double curly braces{{ 变量名 }}.
  • Logical control and function tagsUse single curly braces and percentages{% 标签名 参数 %}And most function tags need corresponding end tags{% end标签名 %}.

Understood the basics, we can integrate website information into template design more effectively.

Core information display: The application of System Tag (System Tag)

AnQiCMS provides a unified basic configuration information for the website'ssystemLabel. Through this label, we can easily obtain all the basic website data configured in the background "Global Settings".

1. Website Name (SiteName)

The website name is the identifier of your brand, which is usually displayed in the title bar, header, or footer of the website. In the AnQiCMS template, you can call it in the following way:

<div>欢迎访问 {{ system with name="SiteName" }}</div>

Or, if you want to assign it to a variable for use in multiple places, you can do it like this:

{% system siteNameVar with name="SiteName" %}
<h1>{{ siteNameVar }}</h1>

2. Website Logo (SiteLogo)

Logo is the visual core of the website, used for brand recognition.After uploading the Logo on the backend, you can easily refer to its image address in the template.altAttribute, and set its value to the website name.

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

Here we cleverly combineSiteLogoandSiteNameTwo tags, so that the Logo image'saltAutomatically obtain the website name, convenient and in line with **practice.

3. Website record number (SiteIcp)

For websites operating in mainland China, the filing number is a legal required piece of information, usually placed at the footer of the website. The tag for calling the filing number is as follows:

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

Here, we not only called the filing number text, but also added a link to the Ministry of Industry and Information Technology's government service platform, so that users can click to verify the filing information, further enhancing the credibility of the website.rel="nofollow"andtarget="_blank"It is a commonly used SEO and user experience setting.

4. Copyright Information (SiteCopyright)

Copyright information declares the ownership of the website content and is usually located at the footer. It can be simple text and may also contain HTML tags (such as, containing a link).

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

Please note here|safeThe filter. If your copyright information in the background settings includes HTML tags (such as links, bold, etc.), use|safeEnsure that these HTML tags are not escaped but are correctly parsed and displayed by the browser. But use them with caution.|safeBecause it will cancel the AnQiCMS default XSS attack protection.

Combine the universal TDK Tag to optimize the page title.

In addition to the direct display mentioned above, the website name also plays an important role in the page title (Title), which is crucial for SEO. AnQiCMS providestdkTag to manage the page's Title, Keywords, and Description. When we need toTitleinclude the website name, we can usetdklabel'ssiteNameparameters:

<title>{% tdk with name="Title" siteName=true %}</title>

This code will intelligently retrieve the title of the current page and append the website name to it (or before, depending on the template logic) to form a more complete page title, such as 'Article Title - Your Website Name'.sepParameters (default to-) You can also customize the separator between the title and the website name.

Place this information into the template.

In practice, this information is usually concentrated in the public part of the website, such asbase.htmlthe header (header) or footer (footer) area of the template file.

The following is an example of a hypothetical footer code snippet that shows how to integrate this information:

<footer>
    <div class="container">
        <div class="footer-logo">
            <a href="/">
                <img src="{% system with name="SiteLogo" %}" alt="{% system with name="SiteName" %}" />
            </a>
        </div>
        <p>
            版权所有 &copy; {% now "2006" %} {{ system with name="SiteName" }}.
            <span class="separator">|</span>
            <a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">{% system with name="SiteIcp" %}</a>
        </p>
        <p class="copyright-text">
            {{ system siteCopyright with name="SiteCopyright" %}{{ siteCopyright|safe }}
        </p>
    </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, which is a very practical detail.

Cautionary notes and **practice

  • Backend settings entry: All this information can be found in the AnQiCMS admin panel.系统设置Configure it in the menu. Make sure you have filled in the corresponding data in the admin panel, otherwise the template will display empty.
  • Template file location and encoding:Ensure your template file (for examplebase.html) is located at/templateis located in the directory and saved using UTF-8 encoding to avoid Chinese garbled characters.
  • |safeFilter:Emphasize again,|safeThe filter function is powerful, but it must be used with caution.Only when you are sure that the content displayed is completely safe and does not contain malicious scripts should you use it to prevent potential XSS attack risks.
  • SEO friendliness:WithLogoAdd imagealtThe attribute not only improves accessibility, but also has a positive impact on search engines understanding image content and improving website SEO.

By proficiently using AnQiCMS'ssystemandtdkLabel, you can easily display the core information of the website in the appropriate position, providing visitors with a professional, complete, and standardized browsing experience.


Frequently Asked Questions (FAQ)

1. Why is the website name I filled in the background "Global Settings" not displayed on the front page?

Firstly, please make sure that your template file is used correctly.{% system with name="SiteName" %}This tag is used to call the website name. In addition, AnQiCMS may have a caching mechanism, try to click the "Update Cache" button in the background, then clear the browser cache (Ctrl+F5 or Cmd+Shift+R) and refresh the page to view.If it still does not display, please check if your template file is loaded correctly or if there are any syntax errors.

2. Why does my website filing number link show 'Unable to access this website' when clicked?

This is usually not a problem with AnQiCMS itself, but because the domain linked to your filing number does not match the actual filing information, or the Ministry of Industry and Information Technology's government service platform (beian.miit.gov.cn) may sometimes experience unstable access or adjustments.https://beian.miit.gov.cn/This link is official and accessible. AnQiCMS is just generating the link according to the format you provided.

**

Related articles

How to obtain and display the website's friend link list in the template?

Managing and displaying friendship links in AnQiCMS is a very practical feature, whether it is to increase the external links of the website, improve SEO effects, or to facilitate users to access partner websites, it can play an important role.AnQiCMS provides a simple and efficient way for us to easily obtain and display these links in the template.### Step 1: Background Management and Configuration of Friend Links Before displaying the friend links on the website front-end, we need to add and manage them in the AnQiCMS background system

2025-11-08

How to get and display the title, content, link, and thumbnail of a specified single page (such as “About Us”)?

In AnQi CMS, the single-page content of a website such as "About UsThese pages not only need to be displayed under independent URLs, but may also need to extract their titles, summaries, links, or thumbnails in other areas of the website (such as the footer, sidebar, or specific modules on the homepage) for display.Anqi CMS provides simple and powerful template tags, allowing you to easily achieve this requirement in website templates.

2025-11-08

How to display a category-specific Banner image or thumbnail on the category page?

In website operation, designing unique visual elements for different category pages, such as a prominent banner image or a dedicated thumbnail, is an effective means to enhance user experience, strengthen brand image, and promote content conversion.AnQi CMS provides intuitive and powerful functional support to meet this requirement.How does Anqi CMS support category-specific visual content?

2025-11-08

How to retrieve and display the name, description, link, and subordinate category list of a specified category?

In AnQiCMS, effective management and display of website categories are crucial for enhancing user experience and content organization.Whether it is to build a navigation menu, sidebar content, or display a category structure on a specific page, it is a common requirement to flexibly obtain the name, description, link, and list of subcategories under the category.This article will introduce how to use AnQiCMS template tags to easily achieve these functions.

2025-11-08

How to dynamically display SEO title, keywords, and description (TDK) in the page header?

In website operation, the dynamic display of SEO title (Title), keywords (Keywords), and description (Description) at the page header, abbreviated as TDK, is a core element of search engine optimization (SEO).They not only help search engines understand the content of the page, but are also the key to attracting users to click.For users of AnQiCMS, the system provides a powerful and flexible mechanism to implement TDK dynamic management, ensuring that each page can achieve **SEO performance.**

2025-11-08

How to display the current page's canonical URL in the template to optimize SEO?

In website operations, Search Engine Optimization (SEO) is one of the core tasks to enhance website visibility.Among them, the setting and correct display of the canonical URL (Canonical URL) is crucial for avoiding content duplication, optimizing crawling efficiency, and concentrating page weight.AnQiCMS (AnQiCMS) is a highly SEO-focused enterprise-level content management system that provides users with convenient tools for managing and deploying standardized links.What is a Canonical URL?

2025-11-08

How to enable Markdown editor rendering content on the front-end page and display mathematical formulas and flowcharts?

Content operation plays a crucial role in the digital age today.The strength of a Content Management System (CMS) largely depends on its ability to flexibly support a variety of content presentation forms.AnQiCMS (AnQiCMS) leverages its efficient and flexible features to provide a vast space for content creators.Today, we will delve into how to elegantly enable Markdown editor to create content on the Anqi CMS front-end page, and further realize the rendering of mathematical formulas and flowcharts, making your website content more expressive.###

2025-11-08

How to implement the switching display of multilingual website content and adapt to users of different languages?

Today, with the deepening of globalization, a website that supports multilingualism has become a basic requirement for enterprises to expand into international markets and serve global users.AnQiCMS deeply insight into this trend, providing users with a highly efficient and flexible multilingual website content management solution, helping your website easily switch between different language content display and better adapt to users around the world.The core concept of AnQiCMS implementing multi-language website content switching is based on multi-site management.

2025-11-08