Including RSS in Emails
1) You can drag and drop an RSS widget in to an already made template
2) You can insert an RSS widget into your own HTML
3) You can insert an RSS widget into a custom coded template which use StreamSend's SHTML markup.
Below we discuss how to include an RSS widget into your own HTML or into a custom coded template.
RSS Widget
Widgets can be inserted into emails using syntax as defined below. Our system will detect this markup and convert it to a widget. Once the markup is converted, it can no longer be edited in the HTML, but rather must be edited from within the widget editor, or the original HTML must be reimported.
SYNTAX
Below is the syntax that we look for in HTML emails that you create or in custom coded templates. Note: the "<markup> .... </markup>" section within in the "<rss-widget....> ... </rss-widget>". The markup here is where you tell the RSS widget what information from the feed to display using the RSS Markup Syntax. The markup MUST BE HTML ESCAPED when inserted into your coded HTML emails or templates. You can easily use an online tool to help you escape that markup.
e.g.
<rss-widget feed-url="http://www.example.com/feed.rss" number-of-stories="5" width="100"> <markup> ... html escaped markup here ... </markup> </rss-widget>
You must include "feed-url", "number-of-stories", and specify the "width".
Example markup that is not HTML escaped:
<!-- example markup that is HTML escaped --> <p>RSS TITLE: <a href="{{url}}" class="rss-details-title-link">{{title}}</a></p> <p>SS: Updated At: {{lastUpdatedAt}}</p> <p> </p> {{#entries}} <p>Image: <a href="{{url}}" target="_blank"><img src="{{firstContentImageURL crop-width="175" crop-height="131"}}" style="width:100%; height:auto;" border="0" /></a></p> <p>publishedAt: {{publishedAt}}</p> <p>author: {{author}}</p> <p>title: <a href="{{url}}" target="_blank" class="rss-article-title-link">{{title}}</a></p> <p>content (200 characters): {{contentText max-chars="200"}}</p> {{/entries}} <!-- // example markup that is HTML escaped -->
Full example in STML:
<rss-widget feed-url="http://www.example.com/feed.rss" number-of-stories="5" width="100"> <markup> <!-- example markup that is HTML escaped --> <p>RSS TITLE: <a href="{{url}}" class="rss-details-title-link">{{title}}</a></p> <p>SS: Updated At: {{lastUpdatedAt}}</p> <p>&nbsp;</p> {{#entries}} <p>Image: <a href="{{url}}" target="_blank"><img src="{{firstContentImageURL crop-width="175" crop-height="131"}}" style="width:100%; height:auto;" border="0" /></a></p> <p>publishedAt: {{publishedAt}}</p> <p>author: {{author}}</p> <p>title: <a href="{{url}}" target="_blank" class="rss-article-title-link">{{title}}</a></p> <p>content (200 characters): {{contentText max-chars="200"}}</p> {{/entries}} <!-- // example markup that is HTML escaped --> </markup> </rss-widget>