`{% diy %}` label and the system built-in `{% system %}` or `{% contact %}` label what are the similarities and differences?

Calendar 👁️ 60

AnQi CMS is an efficient enterprise-level content management system, and its template tag system provides great flexibility for content display.When building a website, we often need to retrieve various data from the backend and display it on the frontend page. Among them,{% system %}/{% contact %}and{% diy %}These tags are all used to obtain information about the background configuration, but they have subtle differences in functional emphasis, data source, and usage scenarios.Understanding these similarities and differences can help us use these tools more efficiently and reasonably, creating websites with clear structure and easy maintenance.

{% system %}Label: The 'Master' of global configuration

Firstly, let's understand{% system %}Label. As the name implies, it is like the "command center" of the website, responsible for obtaining the various configuration information of the "global function settings" in the Anqi CMS backend.This information is often throughout the website as a whole, defining the basic attributes of the website.

When you need to display the website name, website logo, filing number, copyright information, homepage address, template static file path, or even background custom global parameters, {% system %}The label is your preferred choice. It provides a series of predefined fields (such asSiteName/SiteLogo/SiteIcp), allowing you to structurally access these core data.

For example, to display the website logo at the top of the page and link it to the homepage, you can use it like this:

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

It lies in its 'globality' and 'standardization'. For any information involving the overall properties of the website, through{% system %}The call can not only maintain data consistency, but also facilitate unified management and modification of the background, reducing the maintenance cost brought by hard coding of templates.

{% contact %}Label: The bridge connecting users

Next is{% contact %}The tag focuses on all channels of communication between the website and the user. This tag is specifically used to obtain the various contact information configured in the 'Contact Information Settings' of the Anqicms background.

When you need to display contact name, phone number, address, email, WeChat, QQ, as well as various social media links or QR codes (such as WhatsApp, Facebook, Twitter, Instagram, etc.){% contact %}Tags can provide structured support. And{% system %}Similar, it also has a set of predefined fields (such asCellphone/Address/Emailetc.), ensuring the accuracy and consistency of contact information.

For example, display the company's phone number and email address in the footer:

`

Related articles

How to implement a custom global website title or subtitle display using the `{% diy %}` tag?

## How to cleverly use the `{% diy %}` tag of AnQi CMS: Create personalized global website title and subtitle Maintaining brand image consistency and content update flexibility is crucial in website operation.Especially the global title and subtitle of the website, which are not only the first impression visitors have of the website content, but are also key elements of search engine optimization (SEO).

2025-11-06

If the custom content information is not set on the backend, what will the `{% diy %}` tag return on the front end?

AnQiCMS (AnQiCMS) with its flexibility and powerful customization capabilities has become the preferred tool for many enterprises and content operators.The `{% diy %}` tag is the key to displaying dynamic content, allowing us to customize various information in the background and present it on the website front end.What if the backend does not set a specific custom content, and the front end uses the `{% diy %}` tag to call it?As an experienced website operations expert, I am happy to delve deeply into this mechanism.### Understand `{%

2025-11-06

Under AnQiCMS multi-site management, how to accurately call the custom content of a specific site using the `{% diy %}` tag?

In the powerful ecosystem of Anqi CMS, multi-site management is undoubtedly one of its core highlights, giving enterprises the ability to operate multiple brands or sub-sites on the same platform.However, in the process of content operation, we often encounter such needs: how to flexibly call specific custom content from another sub-site in the template of the main site?At this point, the `{% diy %}` tag, combined with its clever `siteId` parameter, has become our powerful assistant in achieving this goal.

2025-11-06

How should the `name` parameter of the `{% diy %}` tag be set correctly to retrieve custom data from the backend?

AnQiCMS (AnQiCMS) is an efficient and flexible content management system, whose powerful custom functions are an important tool for website operators to improve efficiency and achieve personalized display.In daily content operation, we often encounter situations where we need to call back-end preset but non-standard field data, and the `{% diy %}` tag is exactly for this purpose.How should the `name` parameter of this tag be set to accurately obtain the custom data from the backend?Let's delve into it in depth.

2025-11-06

What types of 'custom content information' can I create in the background for the `{% diy %}` tag to call?

As an experienced website operations expert, I am well aware of how crucial it is to manage and call various contents flexibly in daily work.AnQiCMS (AnQiCMS) performs very well in this regard, it provides a series of powerful tags, making content operation effortless.Today, let's delve into it deeply. As a user of Anqi CMS, you can create what types of custom content information in the background, and call it flexibly in the front-end of the website through the `{% diy %}` tag.

2025-11-06

Can the custom parameter value obtained from the `{% diy %}` tag be directly used in conditional judgments within the template?

As an experienced website operations expert, I am well aware of the convenience and strength that AnQiCMS (AnQi CMS) brings to us in content management and website operations.Its flexible template engine and rich tag features make it possible to build and maintain websites efficiently.Today, let's delve deeply into a common problem encountered in template development: 'Can the custom parameter value obtained from the `{% diy %}` tag be used directly for conditional judgments in the template??

2025-11-06

How to implement dynamic loading of image URL and custom media resources with `{% diy %}` tag?

As an experienced website operation expert, I am well aware that the flexibility and customization of website content are crucial for maintaining competitiveness in the ever-changing online environment.AnQiCMS (AnQiCMS) with its efficient architecture based on the Go language and powerful features, provides us with a flexible content management platform.

2025-11-06

Does using the `{% diy %}` tag affect page loading speed or SEO?

In the daily operation of Anqi CMS, we often encounter questions about how template tags affect website performance and SEO effects.Today, let's delve into the usage of the `{% diy %}` tag and see if it really becomes a bottleneck for page loading speed or has a negative impact on search engine optimization.As an experienced website operation expert, I deeply understand that AnQiCMS, developed with high-performance architecture in Go language and rich SEO optimization tools as its core advantage, aims to provide an efficient and customizable content management solution. Therefore

2025-11-06