The `{% diy %}` tag is what difference and similarity with the built-in `{% system %}` or `{% contact %}` tags?

The company CMS is an efficient enterprise-level content management system, 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.{% system %}/{% contact %}and{% diy %}These tags are all used to obtain information about the background configuration, but they have subtle differences in functional focus, data source, and usage scenarios.Understanding these similarities and differences can help us use these tools more efficiently and rationally, creating websites with clear structures and easy maintenance.

{% system %}标签:Global configuration's 'Master'

First, let's understand{% system %}Label.As the name implies, it acts as the 'command center' of the website, responsible for retrieving various configuration information from the 'Global Function Settings' of the 'Security CMS' backend.This information is often throughout the entire website, defining the basic attributes of the website.

When you need to display the website name, website logo, filing number, copyright information, website home page address, template static file path, or even the globally customized parameters in the background, {% system %}The label is your preference. It provides a set of predefined fields (such asSiteName/SiteLogo/SiteIcp), allowing you to access these core data structurally.

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 is most advantageous in its 'global nature' and 'standardization'. For any information involving the overall properties of a website,{% system %}The call not only maintains data consistency but also facilitates unified management and modification by the backend, reducing the maintenance cost brought by hard-coded templates.

{% contact %}Tag: The 'bridge' connecting users

Next is{% contact %}Tags that focus on all channels of communication between websites and users. This tag is specifically used to obtain the various contact information configured in the 'Contact Information Settings' of the 'Safe CMS' backend.

When you need to display contact names, phone numbers, addresses, email addresses, WeChat, QQ, as well as various social media links or QR codes (such as WhatsApp, Facebook, Twitter, Instagram, etc.){% contact %}Labels can provide structured support. With{% system %}similarly, 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:

`