Custom Content Tag

Description: Used for custom content information in the background

Usage:{% diy 变量名称 with name="字段名称" %}The variable name is not required. After setting the variable name, it can be called by the variable name later. If the variable name is not set, the result is output directly.

The supported parameters for diy are:

  • Site IDsiteId siteIdGenerally, it is not necessary to fill in. If you have created multiple sites using the multi-site management on the backend and want to call data from other sites, you can do so by specifyingsiteIdTo implement the call to data from a specified site.

The field names available for the name parameter are:

  • Custom parameters后台自定义设置的参数名

Usage Instructions

If you have added in the backendAuthorIf the parameter is specified, the following code can be used in the template to obtain the value of the parameter:

Tag Usage:{% diy with name="Author" %}

{# 默认用法 #}
<div>作者:{% diy with name="Author" %}</div>
{# 自定义名称调用 #}
<div>作者:{% diy fieldName with name="Author" %}{{fieldName}}</div>