Objective
The goal of this article is to show you the possibilities of reading content from an XML feed and filling an e-mail.
Important!
For static transmissions to target groups and static URL, the external source is cached by the system. For event and trigger mailings as well as for URLs containing profile-specific parameters, there is no caching. The external content is retrieved for each profile that is sent. This can lead to a loss of speed during sending.
Content
The following contents are shown in this use case:
- The header of the e-mailing is generated with headline, text, description and link from the header node of the XML.
- A table is created from the article nodes, which is dynamically extended according to the number of nodes.
- In the table, the image of the article is alternately displayed to the left or right of the text.
- Links from the XML are output as tracking links.
Application
The following functions are used:
- tal:define (official TAL documentation)
- tal:condition (official TAL documentation)
- tal:repeat (official TAL documentation)
- tal:omit-tag (official TAL documentation)
- tal:replace (official TAL documentation)
- tal:content (official TAL documentation)
- tal:attributes (official TAL documentation)
- string: (official TAL documentation)
- exists: (official TAL documentation)
- structure (official TAL documentation)
- Expression chains (official TAL documentation)