Template Content Settings
Template Content Settings
Template content settings are used to maintain the custom content parameters of the current template, and global content such as phone numbers and addresses can be adjusted without modifying the template code.
Entry Path
Top menu of the back end → 'Design' → 'Template Content Settings'. Actual address:/system/design/diyfieldrequires administrative privileges(canAdmin)
Function description
Pages display custom parameters by module group (such as 'Unsorted'), support adding parameters and displaying on the front end throughdiyTag calling.
Screenshot of the interface

Setting item description
| Setting items | function | Value / Default | How to select / Fill in suggestions | Impact / Note |
|---|---|---|---|---|
| Parameter Name | Name used for template calling | The first letter will be automatically capitalized when saved, and the case must be consistent in the template | Fill in a name that is easy to identify and consistent with the display on the front end | Name changes will affect display and calling, pay attention to synchronization |
| Note | Back-end identification instructions | — | Brief description, avoid being vague | Whether to display is determined by the template |
| Module Group | Display parameters in groups | Collapse in the background by group | Fill in according to the page prompt and business requirements | Configure according to the actual performance in front |
| Field type | Determine the control to fill in | Supports text, images, files, text lists, and 13 other types | Fill in according to the page prompt and business requirements | Configure according to the actual performance in front |
| Default value | Initial parameter content | — | Fill in the initial value according to the field type | Leave blank for no default value |
Detailed explanation of configuration items
Parameter name case
Condition for occurrence: Add parameter when [measured].
Source code confirms that the first letter of the parameter name is automatically capitalized when saved [source code+i18n].
Recommended value: Fill in directlySitePhoneIn this form, used in the template{% diy with name="SitePhone" %}Call.
Consequences of filling in incorrectly: When the case is inconsistent during template invocation, the value cannot be read
Field type
Condition for occurrence: Add parameter when [measured].
Supports text, images, files, text lists, etc., 13 types, does not support date, time, datetime, color, and dynamic timeline [source code].
Consequences of filling in incorrectly: Mismatched type will cause front-end rendering exception
Operation steps
- Enter 'Design → Template Content Settings'
- Add parameter, fill in parameter name, remarks, module group, and field type.
- Enter content in the corresponding parameter after saving.
- Click 'Submit' to save the overall settings.
- Call the parameter name in uppercase after the template.
Applicable scenarios and suggestions
- Make contact information, address, statistics code, and other global content into parameters for easy maintenance by non-technical personnel.
- Module groups are divided according to purpose, such as 'Basic Information' and 'Contact Information'.
Front-end call example
{% diy with name="SitePhone" %}
{% diy sitePhone with name="SitePhone" %}
<a href="tel:{{ sitePhone }}">{{ sitePhone }}</a>
Enter parameter nameSitePhoneWhenname="SitePhone"The case should be consistent.
Points to note
- The parameter name will be automatically capitalized when saved, enter
sitePhoneWill becomeSitePhone. - Supports 13 field types, does not support date, time, datetime, color, and dynamic timeline.
- No changes on the front end after modification, clear the cache first.
- See the custom field tutorial for parameter types and configuration details.