Templates: TMPL Reference
On this page is a reference for the types of tags used in .tmpl files, along with explanations of syntax and proper usage.
Echo Variable Tag
Copy the value of a variable into a new file being created by the system via a TMPL.
Syntax:
<!-- %echo -->
Example:
<meta name="keywords" content="<!--%echo var="metakey" -->">
-
This variable provides the ability to turn encoding off. If this attribute is not set, encoding is assumed to be on. If the variable you are outputting has the output attribute set to "xml" then you are required to set encoding to none for the feature to return the proper value.
Syntax:
encoding="none"
-
var
(Required)
The name of the variable which should be printed into the new document. Variable can be defined by a TCF or be a directory variable.
Syntax:
var="string variable name"
Set Variable Tag
Defines a new variable within a TMPL.
Syntax:
<!-- %set -->
Example:
<meta name="keywords" content="<!--%set var="metakey" -->">
Parameters
-
var
(Required)
The name of the variable which should be printed into the new document. Variable can be defined by a TCF or be a directory variable.
Syntax:
var="string variable name"