Custom Content Tag

Instructions: Used for backend custom content information

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, it is output directly.

diy supported parameters are

  • Site IDsiteId siteIdGenerally, it is not necessary to fill in, if you use the multi-site management on the backend to create multiple sites and want to call data from other sites, you can specifysiteIdTo call the data of the specified site.

name parameters available fields are:

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

Usage method

If you added parameters in the backgroundAuthorThen you can use the following code in the template to get the value of the parameter:

Label usage:{% diy with name="Author" %}

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