Custom content tags

Description: Used to customize content information in the background

How to use:{% diy 变量名称 with name="字段名称" %}, the variable name is not necessary. After setting the variable name, you can call it through the variable name in the future. Without setting the variable name, the result will be output directly.

The supported parameters of DIY are

  • Site IDsiteId
    siteIdGenerally, there is no need to fill in it. If you use the background multi-site management to create multiple sites and want to call data from other sites, you can specify itsiteIdTo implement the data calling the specified site.

The field names available for the name parameter are:

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

How to use

If you added it in the backgroundAuthorFor parameters, you can use the following code in the template to get 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>