Templates are single web pages that can be created with any HTML or web page editor. The designer can code particular sections of the templates with tags designated for template design. The end user can then compose a message based on the template by simply supplying the content necessary to complete each section. When designing your template, it is important to remember that you are designing for email and not necessarily the web. Here are a few pointers:
Note - All templates MUST be XHTML compliant.
If you have any questions on best practices when designing your template, please do not hesitate to contact support. After the web page is designed and coded, add the template tags as described below to define which sections of the template will be editable. The final step is to upload the template and all related images. To begin uploading a template, go to Content->Templates and click Upload Template
Template tags, such as %%!attribute1%%, from previous versions of the application were deprecated with the May 2006 product release. Additionally, templates tags that use <ins> as a means of defining template content were deprecated with the November 2006 update.
Note - The current framework will not affect existing templates that use <ins> tags. However, you will need to re-code your template(s) according to the most recent framework if you wish to take advantage of the repeatable sections functionality.
We'll begin by taking a look at some common terms you'll see throughout the documentation below.
You'll be using <div> tags to create template blocks. Attributes can be added to these tags to define the block, and also how the end-user will supply content for the block. Thus, a template-specific tag would take the following form:
1
<div block="1" linked="1" key="body_one" description="Enter the body content" name="Body Content 1"
2
display="plainlarge">
Technically, these attribute additions would make the <div> tag not XHTML-compliant. However, this doesn't affect the XHTML compliance of any messages based on templates since the end user's content would replace the extended <div> tags before messages are sent.
Each template-specific <div> tag can have the following six attributes:
So, here is one last look at a standard editable block tag that can be used in your template:
<div block="1" key="heading_1" name="Main Heading" description="Main Heading goes here." display="plain">
Main Header can be placed here.
3
</div>
Repeatable Sections are areas in the template that can be cloned in order to extend the template to accommodate additional content. For example, a newsletter template may be coded to have a repeatable section containing a section header and a section body, with each header/body section designed to represent an "article" for the newsletter. This type of design would allow the end-user to clone the section as many times as necessary to accommodate the story sections intended for the newsletter. Coding Repeatable Sections
To specify a repeatable section, add the section attribute to the <div> or <span> tags that wrap the template blocks you wish to group in the section. For example:
<div section= "1">
<div block="1" key="company_logo" name="Logo" description="Select your company's logo to appear at the bottom of the page." display="image"></div>
4
<div block="1" key="body_text" name="Body text" description="Enter text for the message body" display="image"></div>
5
This example would repeat the logo section and body and allow you to place different content into each repeatable section. You can have more than one repeatable section in a template.
Note - Sections can only be wrapped around other <div> tags or block-level elements, such as <p> or <table>. You cannot use sections to add columns or rows to a table.
Repeatable sections are denoted in the template UI with a dotted outline and a green "add" icon in the upper-right corner that allows the user to clone the section.
After cloning a section, a new section will appear that displays the default section content. You will be able to add new content to this section. Also, you can reorder or delete the cloned sections by using the "up", "down", and "delete" icons which are described in the Using The Template Editor section of this document.
Below, you will find an example of a completely coded custom template. You can copy and paste this example code and use it as a reference for creating your own custom template. You could also see what this example custom template looks like by copying and pasting the code into a text editor or HTML editor, saving the file as an HTML file, and then opening the HTML file in a browser. Additionally, the screen shot below shows what the example template code actually looks like.
001
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
002
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
003
<html xmlns="http://www.w3.org/1999/xhtml">
004
005
<head>
006
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
007
<title>
008
Example Template Design
009
</title>
010
</head>
011
<body bgcolor="#000000">
012
<table align="center" border="0" cellpadding="0" cellspacing="0">
013
<tr>
014
<td width="600" align="center" bgcolor="#FFFFFF">
015
<!-- Notice the attributes assigned to the <div> below-->
016
<div block="editable" name="headerimage" description="Editable Image Section" id="image" key="image" display="image">
017
<a href="http://www.google.com">
018
<img src="http://hosting-source.bronto.com/8428/public/googlelogo.gif" width="276" height="110" border="0" alt="Software Main Logo Image" />
019
</a>
020
021
</td>
022
</tr>
023
024
<td width="600" height="15" bgcolor="#FFFFFF">
025
026
027
028
<td width="600" valign="top">
029
<table border="0" cellpadding="0" cellspacing="0">
030
031
<td width="215" bgcolor="#035F39" valign="top">
032
033
034
<td bgcolor="#035F39" height="10" width="215" colspan="3"></td>
035
036
037
<td width="14" bgcolor="#035F39"></td>
038
<td width="187">
039
040
041
042
<!-- The section attribute designates a repeatable section-->
043
<div section="1">
044
045
046
<td height="1" width="187" bgcolor="#000000" colspan="3"></td>
047
048
049
<td width="1" bgcolor="#000000"></td>
050
<td width="185" valign="top" bgcolor="#035F39">
051
052
053
<td width="185" height="5" bgcolor="#29A853" colspan="3"></td>
054
055
056
<td width="185" bgcolor="#29A853" align="center" style="font-family:Arial, Helvetica, sans-serif; font-size:20pt; font-weight:bold; color:#ffffff;" colspan="3">
057
<!-- An example of an editable header block-->
058
<div block="editable" name="header" description="Header goes here" id="header" key="header" display="plain" style="font-family:Arial, Helvetica, sans-serif; font-size:18pt; font-weight:bold; color:#ffffff;">
059
Headline Here
060
061
062
063
064
065
066
067
<td width="185" height="5" bgcolor="#035F39" colspan="3"></td>
068
069
070
<td width="5"></td>
071
<td width="175" bgcolor="#035F39" style="font-family:Arial, Helvetica, sans-serif; font-size:10pt; color:#ffffff;">
072
<!-- An example of an editable body block-->
073
<div block="editable" name="body" description="Body goes here" id="body" key="body" display="rich" style="font-family:Arial, Helvetica, sans-serif; font-size:10pt; color:#ffffff;">
074
This body section will use WYSIWYG editor to insert images or text. Mauris molestie sapien nec diam. In vehicula rutrum augue. Maecenas hendrerit lorem sed leo. Mauris congue odio nec nisi. Proin neque. Maecenas auctor. Donec turpis. Cras nunc. Donec non nulla. Curabitur fringilla, nisi pretium fringilla consectetur, ligula lorem iaculis ligula, in malesuada justo mi et lectus.
075
076
077
078
079
080
081
082
</table>
083
084
085
086
087
<td height="1" width="187" bgcolor="#000000" colspan="3">
088
089
090
091
<td width="187" height="10" colspan="3"></td>
092
093
094
095
096
097
098
099
<!-- Another repeatable section-->
100
<div section="2">
101
102
103
104
105
106
107
<td width="185">
108
109
110
111
112
113
<td width="185" bgcolor="#29A853" align="center" style="font-family:Arial, Helvetica, sans-serif; font-size:18pt; font-weight:bold; color:#ffffff;" colspan="3">
114
<div block="editable" name="header2" description="Header goes here" id="header2" key="header2" display="plain" style="font-family:Arial, Helvetica, sans-serif; font-size:18pt; color:#ffffff; font-weight:bold;">
115
Another Side Headline Here
116
117
118
119
120
121
122
123
<td width="5" bgcolor="#29A853"></td>
124
<td width="175" bgcolor="#29A853" style="font-family:Arial, Helvetica, sans-serif; font-size:10pt; color:#ffffff;">
125
<!-- A second editable body block -->
126
<div block="editable" name="body2" description="Body goes here" id="body2" key="body2" display="rich" style="font-family:Arial, Helvetica, sans-serif; font-size:10pt; color:#ffffff;">
127
This body section will use WYSIWYG editor to insert images or text. Mauris molestie sapien nec diam. In vehicula rutrum augue. Maecenas hendrerit lorem sed leo.
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<td width="385" bgcolor="#035F39" valign="top">
159
160
161
<td bgcolor="#035F39" height="10" width="385" valign="top" colspan="3"></td>
162
163
164
165
<td width="357">
166
<!-- A third repeatable section -->
167
<div section="3">
168
169
170
<td height="1" width="357" bgcolor="#000000" colspan="3"></td>
171
172
173
174
<td width="355" bgcolor="#BCEBDE">
175
176
177
<td width="355" height="10" colspan="3" bgcolor="#BCEBDE"></td>
178
179
180
<td width="355" align="center" style="font-family:Arial, Helvetica, sans-serif; font-size:16pt; font-weight:bold; color:#000000;" colspan="3" bgcolor="#BCEBDE">
181
<!-- A third repeatable header-->
182
<div block="editable" name="header3" description="Header goes here" id="header3" key="header3" display="plain" style="font-family:Arial, Helvetica, sans-serif; font-size:16pt; font-weight:bold; color:#000000;">
183
Main Headline Goes Here
184
185
186
187
188
189
190
191
<td width="355">
192
<table border="0" cellspacing="0" cellpadding="0">
193
194
<td width="5" bgcolor="#BCEBDE"></td>
195
<td width="345" bgcolor="#BCEBDE" style="font-family:Arial, Helvetica, sans-serif; font-size:10pt; color:#000000;">
196
<!-- A third editable body block-->
197
<div block="editable" name="body3" description="Body goes here" id="body3" key="body3" display="survey" style="font-family:Arial, Helvetica, sans-serif; font-size:10pt; color:#000000;">
198
This body section will use WYSIWYG editor to insert images or text or a
199
survey. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent
200
pellentesque odio a lorem. Aliquam mauris. Pellentesque nec dolor.
201
202
203
204
205
206
207
208
209
<td width="355" height="15" colspan="3" bgcolor="#BCEBDE"></td>
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<td width="385" height="10" colspan="7" bgcolor="#035F39"></td>
225
226
227
228
229
230
231
232
233
<td width="600" bgcolor="#29A853" align="center" style="color:#ffffff; font-family:Arial, Helvetica, sans-serif; font-size:14pt; font-weight:bold;">
234
<a href="http://www.google.com" style="text-decoration:none; color:#ffffff;">Visit Widgets.com!</a>
235
236
237
238
<td width="600" height="10" bgcolor="#035F39"></td>
239
240
241
<td width="600" bgcolor="#035F39" align="center" style="color:#ffffff; font-family:Arial, Helvetica, sans-serif; font-size:10pt; font-weight:bold;">
242
%%!account_address%% %%!account_telephone%%
243
<a href="%%!unsubscribe_url%%" style="font-family:Arial, Helvetica, sans-serif; color:#ffffff; font-size:8pt;">Unsubscribe</a> | <a href="%%!manage_url%%" style="color:#ffffff; font-size:8pt;">Manage Preferences</a> | <a href="%%!forward_url%%" style="color:#ffffff; font-size:8pt;">Forward to a Friend</a>
244
245
246
247
248
249
250
</body>
251
</html>
Preview of what the example code above looks like:
Designing your own template lets you move beyond the confines of the default templates and opens the door for a lot of creativity and innovative design. We always encourage new and creative templates, but we also suggest that you try and always follow the best practices described below.
It is good practice to make sure that your template includes the following items before uploading it to the application.
Chopping Off the <Head> Tag
Most web-based email clients, such as Yahoo Mail, Gmail, AOL, and Hotmail, automatically remove all the content in between the <head> tags of incoming HTML- based messages. They do this because they are trying to display a web page (the message) inside a web page (their email client) and have to ensure that only one set of <head> tags (the head tags from their email client web page) can be present in order to display the resulting web page well.
For this reason, the application will only import the content between the open and close <body> tags. We recommend moving your CSS, and other content that might be within the <head> tags, between the <body> tags. By parsing everything but the <body> tag content when importing, messages based on your template are ensured to have the highest probability of looking the way you intended in your contacts' web-based email client.
We STRONGLY recommend that you code your templates using inline styles as opposed to normal CSS. This approach will provide greater consistency across various email clients. Also, note that we will automatically attempt to move normal CSS to inline styles. Here is an example of standard CSS placed in the head or body:
<style type="text/css">
<!--
.style3 {font-family: "Times New Roman", Times, serif;
font-size: 11pt;
color: #ffffff;;
6
}
7
-->
8
</style>
Example of inline CSS:
<div style="font-family: Times New Roman, Times, serif; font-size: 11pt; color: #ffffff;">
Content goes here