Template-based email mailings and landing pages can be populated from RSS feeds.
Email templates, landing page templates
How it works in the editor
The RSS icon appears on templates with RSS implementation:
Clicking on it opens the "Read RSS" dialog. Here you can filter by categories or search:
Select which content should be added using the checkbox. You select the target element in the dropdown menu on the right side.
Feed requirements
- RSS versions: 0.91, 0.92, and 2.0
- The feed must contain <rss>, <channel>, and <item>.
- Values must be transmitted in individual tags (for example, image URL, description, price, ...).
- CDATA sections, for example <description><![CDATA[Lorem Ipsum]]><description> are supported.
- Custom data/tags may be used. In this case, you should define the corresponding namespace.
Example
Template Source Code
- <!DOCTYPE html>
- <html>
- <head>
- <title>Template mit RSS</title>
- <meta charset="UTF-8">
- </head>
- <body>
- [CONTAINER name='contents' label='Inhalte' feed-url='http://www.urlaub-daenemark.eu/feed/']
- [ELEMENT name='rss-article' label='RSS-Artikel' feedable='true' feed-category='Ferienhaus Ärö']
- [INPUT name='headline' type='h1' feed-path='title' /]
- [INPUT name='text' type='p' feed-path='description' /]
- [INPUT name='link' type='a' default_text='Weiterlesen' feed-path_href='guid' /]
- [/ELEMENT]
- [/CONTAINER]
- </body>
- </html>
Editor View
The RSS articles are read via the RSS icon on the left of the structure.
Using the operator :: you can access the value of an attribute within a node:
RSS feed: <enclosure url="..." />
Template source code: [INPUT ... feed-path='enclosure::url' /]