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

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:

`