Merge Tags For RSS Campaigns
RSS Campaigns have additional merge tags allowing campaigns to be customized using the content of the feed.
Variables
Tag | Description |
---|---|
| Title of the feed's most recent item. |
| Link (URL) of the feed's most recent item. |
| Description of the feed's most recent item. |
| Publish date of the feed's most recent item. |
| Contains an HTML Use with SAFE to avoid HTML escaping, ex. |
| The URL of the most recent item's image. |
RSS Items
Use the *|RSSITEMS:|*
merge tag to format and output content for the last 3 items in your RSS feed.
Example:
*|RSSITEMS:|*
<p>
<a href="*|RSSITEM:LINK|*">
*|DATE_FORMAT:'%Y-%m-%d', RSSITEM:PUB_DATE|* -
*|RSSITEM:TITLE|*
</a>
<br>
*|SAFE:RSSITEM:DESCRIPTION|*
*|SAFE:RSSITEM:IMAGE|*
</p>
*|END:RSSITEMS|*
You can control the number of RSS items looped over by RSSITEMS by adding a number after the colon in the tag. The number must be between 1 and 10 (a maximum of 10 rss items can be output).
Example outputting 5 rss items:
*|RSSITEMS:5|*
(your content here ...)
*|END:RSSITEMS|*
You can use the RSSITEM:INDEX variable to output different content for different items in the feed.
Example:
*|RSSITEMS:|*
*|IF:RSSITEM:INDEX = 0|*
First RSS Item
*|ELSE:|*
Other RSS Item
*|END:IF|*
*|END:RSSITEMS|*
Item Variables
The following variables are available within an *|RSSITEMS:|*
block:
Tag | Description |
---|---|
| 0 based index of the RSS item. |
| Title of the current RSS item. |
| Link (URL) of the current RSS item. |
| Description of the current RSS item. |
| Publish date of the current RSS item. |
| Contains an HTML Use with SAFE to avoid HTML escaping, ex. |
| The URL of the current RSS item's image. |
Updated 9 months ago