How to set and display the global information of AnQiCMS, such as Logo, filing number, and copyright?

Calendar 👁️ 65

AnQiCMS provides an intuitive and powerful way to manage and display the global information of a website, such as the website logo, filing number, and copyright statement.This information is not only an important part of the website's brand image, but also concerns the legal and compliant operation of the website.Next, I will give a detailed introduction on how to set and use these global information.

Set global information in the background

All website's global information is concentrated in the 'Global Function Settings' of the AnQiCMS backend. Simply log in to the backend, navigate to“Background Settings”and then clickGlobal function settingsto find the relevant options.

On this page, you can easily configure the following key global website information:

  1. Website NameEnter your website's brand name or full name. It usually appears as part of the web page title, in the browser tab, and is very important for website recognition and search engine optimization (SEO).

  2. Website LogoClick the upload button, you can select and upload the website's Logo image.This Logo will be displayed on various pages of the website and is the core element of the brand's visual image.

  3. Record numberIf your website has been registered in mainland China, you can enter your registration number here (for example:京ICP备12345678号).AnQiCMS will automatically convert it into text with a link to the Ministry of Industry and Information Technology filing management system, convenient for users to inquire and verify.

  4. Copyright informationThis field is used to enter the copyright statement of the website, which is usually displayed in the footer of the website. You can enter plain text, or you can include simple HTML tags to beautify the display.

  5. Custom parameterIn addition to the above built-in fields, AnQiCMS also allows you to add custom parameters as needed.This means that if there is some other global information at the website level that needs to be called in the template, you can define it here flexibly.

After setting up, remember to click the save button to ensure all changes take effect.

Display global information in the front-end template.

AnQiCMS's front-end template adopts a syntax similar to the Django template engine, using specific tags to call the global information set in the background. This global information is usually located in the common parts of the website (such as the page headerbash.htmlor footerfooter.htmlCall it to ensure consistent display throughout the site.

It is mainly used for{% system %}tags, throughnameThe parameter specifies the specific field to be called. Here is an example of calling commonly used global information:

  1. Display website LogoThe website logo is usually displayed in image form,<img>.

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

    here,srcThe attribute calls the logo image address set in the background,altThe attribute then called the website name as the alternative text for the image, which is very helpful for image SEO and accessibility.BaseUrlTags are used to obtain the home page address of the website, ensuring that clicking the Logo can return to the homepage.

  2. Display website nameThe website name can be displayed separately or can also be used as the page title<title>is part of.

    <title>{% tdk with name='Title' siteName=true %}</title>
    <h1><a href="{% system with name='BaseUrl' %}">{% system with name='SiteName' %}</a></h1>
    

    In<title>Tagged,{% tdk with name='Title' siteName=true %}Can intelligently combine the page title with the website name. You can also use it directly in the page content.{% system with name='SiteName' %}To display the website name.

  3. Display the record numberThe record number usually contains a link to the Ministry of Industry and Information Technology record query website for user verification.

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

    {% system with name='SiteIcp' %}It will output the record number you filled in on the backend.

  4. Displays copyright informationCopyright information is usually included in the website footer, may contain some HTML tags (such as&copy;or<strong>), so it may be necessary to use|safea filter to prevent HTML from being escaped.

    <p>{% system with name='SiteCopyright' %}</p>
    {# 如果版权信息包含HTML,建议使用|safe过滤器 #}
    <p>{% system siteCopyright with name="SiteCopyright" %}{{siteCopyright|safe}}</p>
    

    By|safeA filter that ensures the HTML content entered in the background can be correctly parsed and rendered by the browser.

  5. Invoke custom parametersIf you add a custom parameter named in the background "Global Feature Settings"ContactEmailyou can also use the parameter,{% system %}Tag to call it.

    <p>联系邮箱:{% system with name='ContactEmail' %}</p>
    

    This showcases the powerful flexibility of the AnQiCMS template system, which can easily be expanded and adapted to meet the needs of different websites.

Summary

Through AnQiCMS, setting up and managing the global information of a website is a simple and efficient process.Configure centrally in the background and display accurately through intuitive template tags on the front end, so that key elements such as the website's Logo, filing number, and copyright information can be presented uniformly and professionally to visitors.This not only helps to establish the brand image, enhance user trust, but also ensures the compliance of website operation.

Frequently Asked Questions (FAQ)

Q1: Why did the website front-end not update immediately after I modified the logo or copyright information in the background?A1: AnQiCMS To improve the speed of website access, caching mechanism will be enabled.After you modify the global settings in the background, you may need to manually clear the website cache or wait for the cache to be automatically updated before the latest content is displayed on the front end.You can find the "Update Cache" button at the top of the background, click it to clear all the cache.

Q2: Besides Logo, filing number and copyright information, do I want to display the company's address and contact phone number in the footer of the website? Can AnQiCMS achieve this?A2: Sure. AnQiCMS provides the 'Contact Information Settings' function under 'Background Settings', where you can fill in contact person, phone number, and contact address information.In the template, you can use{% contact with name='Address' %}and{% contact with name='Cellphone' %}Use tags to call up this information and display it in the footer of the website or other required locations.

Q3: How to adjust the website logo if it appears too large or too small on some pages?A3: The display size of the logo is mainly controlled by the front-end CSS style.The default uploaded Logo of AnQiCMS will maintain the original size.If you wish to uniformly process the Logo size, go to the 'Background Settings' under 'Content Settings', adjust options such as 'Thumbnail Processing Method' and 'Thumbnail Size'.Also, you can target the Logo image in the CSS file of the website,<img>tagswidthorheightStyles rules for precise control.

Related articles

How to display pagination links in AnQiCMS and control the number of page numbers displayed?

In website operation, effectively managing and displaying a large amount of content is the key to improving user experience.When the content list is too long, a reasonable pagination mechanism can not only make it easier for users to browse, but also optimize the page loading speed, and indirectly improve the search engine friendliness.In AnQiCMS, implementing pagination and flexibly controlling the display quantity of page numbers is a relatively direct and powerful process.--- ## Display pagination links elegantly and flexibly control the number of pages in AnQiCMS In your AnQiCMS website, when the number of articles, products, or other list content increases

2025-11-08

How to retrieve and display custom form fields in AnQiCMS comment form?

When using AnQiCMS to manage website content, the online message function is undoubtedly an important means of interacting with visitors, collecting feedback, or gathering potential customer information.In addition to the basic name, contact information, and message content, we often need to collect more specific and personalized information, such as 'Your project budget', 'The type of service you are interested in', or 'The expected contact time'.AnQi CMS provides a flexible custom message field function, allowing us to easily meet these needs.How can I retrieve and elegantly display these custom form fields on the website front page?

2025-11-08

How to display user comment lists and implement pagination in AnQiCMS?

In website content operation, user comments are an important part of enhancing interactivity and activity, and reasonable pagination can ensure that the comment list is both complete and loads smoothly.AnQiCMS (AnQiCMS) provides powerful and flexible template tags, allowing you to easily display and manage user comments on the front-end page, and implement pagination functionality for the comment list.

2025-11-08

How to use AnQiCMS tags to display the document list under a specific Tag?

In AnQiCMS, tags are a powerful content organization method that helps us associate content with different categories and models more flexibly.Using labels appropriately can not only optimize the SEO performance of a website, but also significantly improve the user's experience in discovering content on the website.When we want to focus on displaying all relevant documents under a specific tag, AnQiCMS provides a set of intuitive and efficient template tags to meet this need.This article will introduce in detail how to use the built-in template tags of AnQiCMS

2025-11-08

How to implement conditional logic in AnQiCMS to control the display of content?

In website operation, displaying different content based on different conditions is the key to improving user experience and achieving refined operation.AnQiCMS provides powerful and flexible template tags and logical judgment functions, allowing us to easily implement conditional display of content, thereby meeting various business needs.This article will delve into how to make use of the template engine features in AnQiCMS, controlling the display of website content precisely through conditional logic judgments.

2025-11-08

How does the AnQiCMS template loop through arrays or objects to display list data?

In the Anqi CMS template system, the core of looping through arrays or objects and displaying list data lies in understanding its Django-like template syntax, especially the use of the `for` loop tag.This mechanism makes the presentation of dynamic content intuitive and efficient, whether it is for article lists, category navigation, or product displays, it can adapt flexibly. ### Core Mechanism: The Use of `for` Loops Data traversal in Anqi CMS templates mainly relies on `{% for ...in ...

2025-11-08

How to format a timestamp in AnQiCMS template and display it in a specified date format?

In AnQiCMS template, processing timestamps and displaying them in a specific date format is a common requirement in content operation.No matter whether you need to display the publication time of the article or the update date of the product, understanding how to flexibly format time will greatly enhance the expressiveness of the website content.AnQiCMS provides simple and powerful template tags, making this process easy and convenient.

2025-11-08

How to define and use variables in AnQiCMS to display data flexibly in templates?

AnQiCMS (AnQiCMS) is an efficient and flexible content management system, whose powerful template function is the key to building a personalized website.In templates, defining and using variables flexibly allows us to easily handle and display various types of data, whether it's article titles, categorization information, or custom field content. All of this can be dynamically called through variables, making the website full of vitality.We will delve deeper into how to define, obtain, and use variables in AnQiCMS templates, helping everyone build and maintain websites more efficiently.

2025-11-08