Thanks to Webmecanik Automation, you can add content in your emails with RSS feeds.
When you create an email with a theme, juste drag and drop a code mode bloc and add this code below (if your email already is in code mode, just add this code):
{feed url="<<FEEDURL>>"}
{feeditems count="3"}
<h3>{feeditem:title}</h3>
<p><small>{feeditem:date format="d-m-Y H:i"}</small></p>
<p>{feeditem:description}</p>
<p><img src="{feeditem:image}"></p>
{/feeditems}
{/feed}
You just need to replace <<FEEDURL>> by the URL of the feed.
Then it is up to you to add or remove any tags you want.
Below are available tags.
The following tags can be used in the {feed} block:
{feedinfo:title}
Returns: title of the feed
{feedinfo:url}
Returns: url of the feed
{feedinfo:description}
Returns: description of the feed
The following tags can be used in the {feeditems} block:
{feeditem:title}
Returns: title of the post
{feeditem:link}
Returns: link to the post
{feeditem:content}
Returns: summarized content (desciption), when description is not available it will return the full content
{feeditem:content_full}
Returns: full content of the post
{feeditem:content_text}
Returns: summarized content (desciption), when description is not available it will return the full content. Tags are stripped.
{feeditem:content_full_text}
Returns: full content of the post stripped of tags
{feeditem:description}
Returns: summarized content (desciption) of the post
{feeditem:date}
Optional param: format {feeditem:date format="d-m-Y H:i"} Returns: summarized content (desciption) of the post
{feeditem:author}
Returns: author name of the post
{feeditem:category}
Returns: comma seperated list of the categories
{feeditem:image}
Returns: url of the image. Will check the enclosere and media tags of the xml.
PLEASE NOTE : By default, RSS items are displayed sorted by date. To force sort the elements and keep the order defined in the xml file, you can use the force = "1" parameter in the {feeditems} tag like this :
{feeditems count="30" force="1"}
Comments
0 comments
Please sign in to leave a comment.