HTML templates allow you to save HTML code often used for advertising and so not to have to write by hand every time. In addition, HTML templates can be provided with specific wildcards and allow a predefined input. Instead of making entries in the code then appears a form with input fields for the respective data and thus simplifies the creation of promotional materials.
define fields
If an HTML template must allow certain fields this in the HTML code of the document, the placeholder %template:x% is used. Insert the placeholder while at the point at which the input data to be inserted. The in place is surrounded by x text is used as a field name. Example:
<a target="_blank" href="%url%">%template:URL-Text%</a>
The example creates an HTML document with an input field "URL-Text".
Settings for input fields
The %template% placeholder can also be expanded to include a number of settings for input and output of data. To do this, note the placeholder %template{}:x%. Then inside the braces note by Pipe (|) separated each setting .
Example: Text Ad for Triple Banner
Here, the headline, description 1, description 2 and the display is generated as an input field.
<div align="left" style="text-align:left; line-height:0.9em;">
<a target="_blank" href="%url%" style="text-decoration:none; font-size:9pt; font-weight: normal; font-family: Arial; color: black; "> <b style="font-size:9pt; font-weight: bold; font-family: Arial; color:blue;">
%template{max=25|htmlentities=1}:heading%</b><br>
%template{max=35|htmlentities=1}:text line 1%<br>
%template{max=35|htmlentities=1}:text line 2%<br>
<span style="font-size: 9pt; font-weight: bold; font-family: Arial; color: green; line-height: 0.9em;">
%template{max=35|htmlentities=1}:display URL%
</span>
</div>
The following settings are available for data entry:
max=x | The text can be up to x characters. |
type=x |
Type of the input field: 0 = normal text field |
upload=1 | If set, a file upload button is placed in front of the input field |
default=x | Default value for the input field |
The following settings are possible for the output of the data:
urlencode=1 | URL encode data: when set |
urldecode=1 | URL decoding data: if set |
htmlentities=1 | when set: HTML encode data |
addslashes=1 | when set: Adds \, ' and " ein Backslash (\) in front |
text2js=1 |
when set: Converts text in JavaScript-compatible text to (replaces line breaks, quotes, etc.) |
Furthermore, can be controlled via the placeholder %convert-template-to-var% that all fields created in the template are provided as placeholders available (name corresponds to "template_"+Name des Feldes of the field).