Example email/landing page template
The following template provides the element Article - Text with Headline. This consists of a headline and a text. Click on the icons in the template source code to see a description.
Email templates consist of an HTML part and a text part. This section exclusively describes the HTML part. The creation of the text part is explained
here.
Template source code
- <!DOCTYPE html>
- <html>
- <head>
- <title>Mein erstes Template</title>
- <meta charset="UTF-8">
- <style>
- body { font-family: Arial, sans-serif; }
- </style>
- </head>
- <body>
- [CONTAINER name='contents' label='Inhalte']
- [BETWEEN]<br /><br />[/BETWEEN]
- [ELEMENT name='article' label='Artikel - Text mit Headline' default='true']
- <table border="0" cellspacing="0" cellpadding="0" width="640" align="center">
- <tr>
- <td>
- [BLOCK name='headline' label='Headline']
- <h1>[INPUT name='text'
- label='Text'
- type='span'
- rows='2'
- default='Headline'
- required='true' /]</h1>[/BLOCK]
- <p>[INPUT name='text' label='Text' type='span' rows='8' default='Das ist der Artikeltext.' /]</p>
- </td>
- </tr>
- </table>
- [/ELEMENT]
- [/CONTAINER]
- </body>
- </html>
Editor-View
Left: Mailing or landing page structure. The element Article - text with headline is automatically added to the content when the mail/landing page is created due to the attribute default='true'.
Center: Mailing/landing page preview
Right: Element pool. Contains a list of all elements available in the template.
Click on Article - Text with headline in structure to open the window for editing:
Output source code
- <!DOCTYPE html>
- <html>
- <head>
- <title>Mein erstes Template</title>
- <meta charset="UTF-8">
- <style>
- body { font-family: Arial, sans-serif; }
- </style>
- </head>
- <body>
- <table border="0" cellspacing="0" cellpadding="0" width="640" align="center">
- <tr>
- <td>
- <h1><span>Headline</span></h1>
- <p><span>Das ist der Artikeltext.</span></p>
- </td>
- </tr>
- </table>
- </body>
- </html>
Rules
The following tags may be used directly in the container [CONTAINER]...[/CONTAINER]: [ELEMENT]...[/ELEMENT], [TOP]...[/TOP], [BETWEEN]...[/BETWEEN] and [BOTTOM]...[/BOTTOM].
- Containers and elements with the same name may be defined multiple times.
- Elements must always be defined within containers.
- Elements can be nested: they can contain containers with elements.
- Blocks [BLOCK] and input fields [INPUT /] can also be used outside of containers and elements. If these are placed outside, the inputs are displayed in the editor (tab "Contents") under "Global Adjustments".
- Each [BLOCK] must contain at least one [INPUT /]. However, it is possible to define an [INPUT /] without a [BLOCK].
In the next step, learn how to structure email or landing page templates effectively: